woozle.org/people.sh

16 lines
316 B
Bash
Raw Normal View History

2010-11-10 20:54:22 -07:00
#! /bin/sh
echo 'Title: People'
echo
2012-02-22 12:43:35 -07:00
echo 'The following people have made public homepages:'
echo
2010-11-10 20:54:22 -07:00
ls /home/*/public_html/index.html | while read fn; do
a=${fn#/home/}
u=${a%/public_html/index.html}
2012-02-04 10:16:01 -07:00
l=/srv/www/woozle.org/~$u
2010-11-10 20:54:22 -07:00
2012-02-04 10:16:01 -07:00
echo "* [$u](/~$u/)"
[ -h $l ] || ln -s /home/$u/public_html $l
2010-11-10 20:54:22 -07:00
done