swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit e0328389c0b0d6b0cde6f05a67b4201042a36b6c
parent 35d3e31e663495bad2c83bcb3e0ca641e1e5dfd2
Author: uriel@suckless.org <unknown>
Date:   Sun, 14 Sep 2008 23:17:46 +0200

Note that we should replace stat(1) with ls(1) and mtime(1)
Diffstat:
Mbin/controller.rc | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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'}}