New sitemap generator in rc that also includes .html files

This commit is contained in:
uriel 2007-06-09 23:34:55 +02:00
parent 26a405b69e
commit 1ebac62918

6
bin/gensitemaptxt.rc Executable file
View File

@ -0,0 +1,6 @@
#!/bin/rc
for ( d in sites/*/ ) {
du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
}