shithub: werc

ref: 3becc6544d4b491fd4818b16625ee2c5e8268e91
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

}