Big cleanup of bin/, move external programs to contrib/, move minor useful scripts to aux/, and most important of all move controller.rc to werc.rc

This commit is contained in:
Uriel 2008-10-26 04:29:50 +01:00
parent 4f75a5b3b6
commit eac8d656f3
9 changed files with 1 additions and 23 deletions

View file

@ -1,7 +0,0 @@
02:50 < devn> <META name="description" content="This is the Google Summer of Code blog for Plan9 and Inferno projects.">
02:50 < devn> <META name="keywords" content="google, summer of code, inferno, plan9, programming">
Should add werc to certain wikipedia lists:
* http://en.wikipedia.org/wiki/List_of_content_management_systems
* http://en.wikipedia.org/wiki/Comparison_of_wiki_software

View file

@ -1,13 +0,0 @@
#!/usr/bin/env rc
for ( d in sites/*/ ) {
echo $d
9 du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
if(! test -f $d/robots.txt) {
echo generating missing robots.txt for $d
echo $d|sed 's,sites/,Sitemap: http://,; s/$/sitemap.txt/;' > $d/robots.txt
cat $d/robots.txt
}
}

View file

@ -274,8 +274,6 @@ for (i in ('' $args)) {
blogDirs = ()
}
if (test -f $fpath/_config)
. $fpath/_config # DEPRECATED
if (test -f $fpath/_werc/config)
. $fpath/_werc/config
@ -289,7 +287,7 @@ if (~ $#redirectPermanent 1)
if not if (~ $#redirectPermanent 2 && {echo $SERVER_NAME^$REQUEST_URI|grep -s $redirectPermanent(1) }) {
# Experimental regexp sub-based redirect, probably should find a nicer interface
# For now only used at sites/harmful.cat-v.org/software/OO_programming/_config
# For now only used at sites/harmful.cat-v.org/software/OO_programming/_werc/config
to=`{echo $SERVER_NAME^$REQUEST_URI|sed 's@'^$redirectPermanent(1)^'@'^$redirectPermanent(2)^'@'}
if(! ~ $to $REQUEST_URI)
perm_redirect $to