From 64815121f27307a7c7664e8604bfdaaef5270b9e Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 20 Apr 2010 20:04:58 +0100 Subject: Use GNU ls extension to ensure date format --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: % -- cgit v1.2.3