commit 29c2c5e62798de73e1783feca74974e1961d55b4
parent a9cc90cefdf11b6b6821f5f865b33220b4633fd5
Author: uriel@engel.se.cat-v.org <unknown>
Date: Sat, 9 Jun 2007 23:34:55 +0200
New sitemap generator in rc that also includes .html files
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/gensitemaptxt.rc b/bin/gensitemaptxt.rc
@@ -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
+
+}