diff --git a/bin/gensitemaptxt.rc b/bin/gensitemaptxt.rc new file mode 100755 index 0000000..deedc95 --- /dev/null +++ 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 + +}