shithub: werc

ref: b469932e87f5b0c047c20db6183fbd5fab608c46
dir: /bin/gensitemaptxt.rc/

View raw version
#!/usr/bin/env rc

echo foo
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

}