ref: f8bff9a2f4f620bf1616222d54363f270d4b1a61
parent: 8e997ffe8fbea9cb99ad97ef4c452f6048900c2c
author: uriel <[email protected]>
date: Sun Sep 14 19:17:46 EDT 2008
Note that we should replace stat(1) with ls(1) and mtime(1)
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -351,6 +351,7 @@
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'}}