ref: 2acc2442edefa684323d2021e1522e60a311c309
parent: 52f0262b69fbc0cc463b41e3e60e3d7d9ce9b1e8
author: uriel <uriel@engel.se.cat-v.org>
date: Wed Jun 18 17:06:57 EDT 2008
Add support for .txt files
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -95,6 +95,10 @@
}
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 )