#!/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 "${a/*-} ($a)" >> $TEMPFILE echo -n "$TEXT ($DATE_HUMAN)" >> $TEMPFILE echo "" >> $TEMPFILE } done TEMPFILE2=`mktemp` echo "" > $TEMPFILE2 cat $TEMPFILE | sort -nrk1 | sed "s|^[0-9]* ||" >> $TEMPFILE2 echo "
" >> $TEMPFILE2 mv $TEMPFILE2 $DEST_FILE chmod 644 $DEST_FILE rm -f $TEMPFILE exit 0