diff options
author | Nick White <git@njw.me.uk> | 2010-09-14 12:08:34 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-09-14 12:08:34 +0100 |
commit | b0cc783f8545c563a246adee51a99ff6bfcdfd50 (patch) | |
tree | 4590c04d6924651cc5b440e56d6dfaa6e9decf32 | |
parent | 8aa8775762f6c32a1d7aa25ef09358b125191cd2 (diff) | |
download | njw-website-b0cc783f8545c563a246adee51a99ff6bfcdfd50.tar.bz2 njw-website-b0cc783f8545c563a246adee51a99ff6bfcdfd50.zip |
Stop relying on gnu extensions to ls
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | makerss.sh | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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: @@ -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; |