summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-20 20:04:58 +0100
committerNick White <git@njw.me.uk>2010-04-20 20:04:58 +0100
commit64815121f27307a7c7664e8604bfdaaef5270b9e (patch)
tree6a14ca50053de097c254b30e3e8e8ba803401e09 /Makefile
parent6347e8834e9e0d00cfadecc1871ca83b9040c933 (diff)
downloadnjw-website-64815121f27307a7c7664e8604bfdaaef5270b9e.tar.bz2
njw-website-64815121f27307a7c7664e8604bfdaaef5270b9e.zip
Use GNU ls extension to ensure date format
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5d91674..14732a2 100644
--- a/Makefile
+++ b/Makefile
@@ -22,13 +22,13 @@ index.xml: index.txt includes/header-index.xml includes/footer.xml
@echo making $@
@sed "s/TITLE/`head -n 1 < $<`/" < includes/header-index.xml > $@
@$(MARKDOWN) $< >> $@
- @sed "s/MODDATE/`ls -lc $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
+ @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
.txt.xml:
@echo making $@
@sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@
@$(MARKDOWN) $< >> $@
- @sed "s/MODDATE/`ls -lc $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
+ @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
# not POSIX compatible
%.gz: %