werc/bin/gensitemaptxt.sh
2007-05-29 04:04:05 +02:00

6 lines
141 B
Bash
Executable File

#!/bin/sh
for d in sites/*/; do
find $d -name '*.md'|sed -e 's/\.md$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
done