swerc

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

commit 0aa0912527c868590c62651c3a0b7b588034916c
parent 45bcfea95d473db85c48f47da17efe67589b19b5
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Mon, 18 Jun 2007 05:30:46 +0200

Silence some silly 'broken pipe' errors
Diffstat:
Mpub/sitemap.tpl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pub/sitemap.tpl b/pub/sitemap.tpl @@ -30,7 +30,7 @@ fn listDir { # H1 is not reliable because htmlroff doesn't use it :( #desc = `{ cat $i.html |sed 32q | grep '<[Hh]1>' |sed 's/<[Hh]1>(.*)(<\/[Hh]1>|$)/\1/;s/<[^>]*>//g;1q' } # Pick the first line of body instead - desc = `{ cat $i.html |/bin/sed '0,/<[Bb][Oo][Dd][Yy]/d;s/<[^>]*>//g;/^$/d'|sed 1q } + desc = `{ /bin/sed -e '0,/<[Bb][Oo][Dd][Yy]/d;s/<[^>]*>//g;/^$/d' < $i.html >[2]/dev/null | sed 1q } } if (! ~ $desc '') desc = ' - '$"desc