[and...@arch sw-build-new]$ cat sw.log changeset: 24:5aa227c711bc tag: tip user: Andrew Antle <andrew dot antle at gmail dot com> date: Wed Apr 07 06:35:41 2010 -0400 summary: Moved configuration to sw.conf. Too slow?
[and...@arch sw-build-new]$ cat sw.diff diff -r e2300ba049de -r 5aa227c711bc sw.cgi --- a/sw.cgi Wed Apr 07 01:00:21 2010 +0200 +++ b/sw.cgi Wed Apr 07 06:35:41 2010 -0400 @@ -1,16 +1,7 @@ #!/bin/sh # sw - suckless webframework - 2010 - nibble <develsec.org> -# Configuration -TITLE="foo.org" # Site title -SUBTITLE="" # Site subtitle -SITE="site" # Site folder -BL="^index.md$ ^images$" # Black list -PREFIX="/" # sw location ("/" is wwwroot) -BIN="sw.cgi" # CGI name -STYLE="style.css" # Stylesheet name -# External apps -MDHANDLER="/usr/local/bin/md2html.awk" # md handler +. ./sw.conf echo "Content-type: text/html" echo diff -r e2300ba049de -r 5aa227c711bc sw.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sw.conf Wed Apr 07 06:35:41 2010 -0400 @@ -0,0 +1,10 @@ +# Configuration +TITLE="foo.org" # Site title +SUBTITLE="" # Site subtitle +SITE="site" # Site folder +BL="^index.md$ ^images$" # Black list +PREFIX="/" # sw location ("/" is wwwroot) +BIN="sw.cgi" # CGI name +STYLE="style.css" # Stylesheet name +# External apps +MDHANDLER="/usr/local/bin/md2html.awk" # md handler Sorry... That last message I sent was garbled. -- Andrew Antle <andrew dot antle at gmail dot com>