summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xmakerss.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9e82a32..112e96c 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ $(PUBS:.txt=.tex): includes/header.tex includes/footer.tex
echo making $@
sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@
$(MD) $< >> $@
- sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
+ sed "s/MODDATE/`stat -c %y $<|awk '{print $$1}'`/" < includes/footer.xml >> $@
# TODO: clean up sed here
.txt.tex:
diff --git a/makerss.sh b/makerss.sh
index f4a6285..f387ec2 100755
--- a/makerss.sh
+++ b/makerss.sh
@@ -30,7 +30,7 @@ echo " ]."
for item in $items; do
title=`head -n 1 ./${item}.txt`
- moddate=`ls -lc --time-style=+%Y-%m-%d ./${item}.txt|awk '{print $6}'`
+ moddate=`stat -c %y ./${item}.txt|awk '{print $1}'`
link="${siteurl}${item}"
cat << EOF
@@ -39,7 +39,7 @@ for item in $items; do
rss:link <${link}>;
dc:date "${moddate}";
dc:creator <${creator}>;
- cc:license <http://www.gnu.org/licenses/gpl.html>.
+ dc:license <http://www.gnu.org/licenses/gpl.html>.
EOF
done;