From 793a1de02edd35bc7b9a84042881e29229971313 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 14 Sep 2008 23:17:46 +0200 Subject: [PATCH] Note that we should replace stat(1) with ls(1) and mtime(1) --- bin/controller.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/controller.rc b/bin/controller.rc index 27dac84..70f82ba 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -351,6 +351,7 @@ fn statpost { uri = `{echo $f | sed 's,^'$sitedir',,'} title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}} + # TODO: use mtime(1) and ls(1) instead of lunix's stat(1) stat=`{stat -c '%Y %U' $f} #mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}}