shithub: werc

Download patch

ref: 12d625c8e0c55c88347fd548b0ae19c3c41ebfe9
parent: 199e3d304111bb0061ee0a8780a083f88c85d2df
author: uriel <[email protected]>
date: Sat Jun 9 19:34:55 EDT 2007

New sitemap generator in rc that also includes .html files

--- /dev/null
+++ b/bin/gensitemaptxt.rc
@@ -1,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
+
+}