commit 645e4512670ebf3e4d1152d70a580db760274770
parent c04f399c2e9a6e1cf5702a267f1ef00cbd806443
Author: uriel@localhost.localdomain <unknown>
Date: Wed, 18 Jun 2008 21:06:57 +0200
Add support for .txt files
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/bin/controller.rc b/bin/controller.rc
@@ -95,6 +95,10 @@ fn genbody {
}
if not if ( test -f $body.tpl )
template.awk $body.tpl | rc $rcargs
+ if not if ( test -f $body.txt )
+ echo '<pre>'
+ cat $body.txt |fmt -j| sed 's/\</>/' 's/\>/</'
+ echo '</pre>'
if not if ( test -f $body.html )
cat $body.html | /bin/sed '0,/<[Bb][Oo][Dd][Yy][^>]*>/d; /<\/[Bb][Oo][Dd][Yy]>/,$d'
if not if (~ $body *.html && test -f $body )