#! /bin/bash

# 	$Id: hplist.sh,v 1.2 2001/09/28 00:10:26 gilles Exp $	

dir=${1:-~lf}
cat <<EOF
<head>
<title>Liste des contributeurs</title>
</head>
<body>
<h1>Liste des contributeurs</h1>
<pre>
EOF

for user in `ls $dir`; do
    # echo ${user}
    if [ -d $dir/${user}/html ];then
	if [  -f "$dir/${user}/html/HEADER.html" \
	    -o  -f "$dir/${user}/html/HEADER.fr.html" \
	    -o -f "$dir/${user}/html/index.html" \
	    -o -f "$dir/${user}/html/quefaisje.html" \
	    ];then
	    echo "<font size=+5><b><A href="http://www.linux-france.org/~$user/">$user</A></b></font>"
	else
	    echo "<A href="http://www.linux-france.org/~$user/">$user</A>"
	fi
    fi
done

cat <<EOF
</pre>
</body>
EOF

