29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
. /etc/sysconfig/openmamba-central
|
|
|
|
TEMPFILE=`mktemp`
|
|
DEST_FILE=$local_ftp/devel/developers-status.inc
|
|
> $TEMPFILE
|
|
|
|
for a in ${local_reps[*]} ${remote_reps[*]}; do
|
|
[ -e $local_ftp/$a/home/developer-status.inc ] && {
|
|
DATE_UNIX=`date -r $local_ftp/$a/home/developer-status.inc +%s`
|
|
DATE_HUMAN=`date -r $local_ftp/$a/home/developer-status.inc +%c`
|
|
TEXT=`cat $local_ftp/$a/home/developer-status.inc`
|
|
[ "$TEXT" ] || continue
|
|
TEXT=`echo $TEXT|sed "s|<[^<]*>||g"`
|
|
echo -n "${DATE_UNIX} " >> $TEMPFILE
|
|
echo -n "<tr><td nowrap valign=top>${a/*-} (<a href=\"http://www.openmamba.org/distribution/distromatic.html?tag=$a\">$a</a>)</td><td width=100%>" >> $TEMPFILE
|
|
echo -n "$TEXT <font size=-2><i>($DATE_HUMAN)</i></font>" >> $TEMPFILE
|
|
echo "</td></tr>" >> $TEMPFILE
|
|
}
|
|
done
|
|
TEMPFILE2=`mktemp`
|
|
echo "<table width=850>" > $TEMPFILE2
|
|
cat $TEMPFILE | sort -nrk1 | sed "s|^[0-9]* ||" >> $TEMPFILE2
|
|
echo "</table>" >> $TEMPFILE2
|
|
mv $TEMPFILE2 $DEST_FILE
|
|
chmod 644 $DEST_FILE
|
|
rm -f $TEMPFILE
|
|
exit 0
|