shithub: werc

ref: 2533d52e0cf8ceae3613f7aa16b7b9bd82ec01b6
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

}