woozle.org/people.sh

19 lines
392 B
Bash
Executable File

#! /bin/sh
echo 'Title: People'
echo
echo 'The following people have made public homepages:'
echo
ls /home/*/public_html/index.html | while read fn; do
a=${fn#/home/}
u=${a%/public_html/index.html}
tl=/srv/www/woozle.org/~$u
l=/srv/www/woozle.org/$u
echo "* [$u](/~$u/)"
for link in $tl $l; do
[ -h $link ] || ln -s /home/$u/public_html $link
done
done