diff options
author | Nick White <git@njw.me.uk> | 2010-04-20 20:04:58 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-04-20 20:04:58 +0100 |
commit | 64815121f27307a7c7664e8604bfdaaef5270b9e (patch) | |
tree | 6a14ca50053de097c254b30e3e8e8ba803401e09 | |
parent | 6347e8834e9e0d00cfadecc1871ca83b9040c933 (diff) | |
download | njw-website-64815121f27307a7c7664e8604bfdaaef5270b9e.tar.bz2 njw-website-64815121f27307a7c7664e8604bfdaaef5270b9e.zip |
Use GNU ls extension to ensure date format
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: % |