shithub: werc

ref: 582b3d8a3eed8768a7b7f4be35128c72728b79a1
dir: /bin/gensitemaptxt.rc/

View raw version
#!/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

}