From e2ee3bdf6e64d9cec0d8d8d51012f52316ce71f0 Mon Sep 17 00:00:00 2001 From: Uriel Date: Wed, 24 Dec 2008 09:36:52 +0100 Subject: [PATCH] Replace stat(1) with mtime(1) (disabled code for now) --- lib/feeds/atom.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/feeds/atom.tpl b/lib/feeds/atom.tpl index 8d092b5..42add06 100644 --- a/lib/feeds/atom.tpl +++ b/lib/feeds/atom.tpl @@ -14,7 +14,7 @@ fn statpost { # Not used: 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 + #mdate=`{/bin/date -Rd `{mtime $f|awk '{print $1}' }} # Not used because it is unreliable by=$stat(2) ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } } }