Update of /cvsroot/fink/experimental/asari In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15833
Modified Files: openoffice.org.testmirrors.sh Log Message: Revised messages. Index: openoffice.org.testmirrors.sh =================================================================== RCS file: /cvsroot/fink/experimental/asari/openoffice.org.testmirrors.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- openoffice.org.testmirrors.sh 21 Oct 2005 00:29:31 -0000 1.1 +++ openoffice.org.testmirrors.sh 21 Oct 2005 01:13:00 -0000 1.2 @@ -3,16 +3,17 @@ INFOFILE=${INFOFILE:-openoffice.org.info} TMPFILE=`/usr/bin/mktemp /tmp/\`basename $0\`.XX` -hosts=$(/usr/bin/sed -n 's/.*\(...\)-\(..\): \(.*\)$/[\1-\2],\3/p' ${INFOFILE}) +hosts=$(/usr/bin/sed -n 's/\(#*\)\(...\)-\(..\): \(.*\)$/\1,[\2-\3],\4/p' ${INFOFILE}) version=`/usr/bin/sed -n -e 's/^Version: \(.*\)$/\1/p' "$INFOFILE"` source=`/usr/bin/sed -n -e "s/%v/$version/g" -e 's/^Source: mirror:custom:\(.*\)$/\1/p' "$INFOFILE"` for host in ${hosts[*]}; do - area=`echo $host | /usr/bin/cut -d, -f1` - url=`echo $host | /usr/bin/cut -d, -f2` + disabled=`[ -n "$(echo $host | /usr/bin/cut -d, -f1)" ] && echo "DISABLED " || true` + area=`echo $host | /usr/bin/cut -d, -f2` + url=`echo $host | /usr/bin/cut -d, -f3` outputfile=`/usr/bin/mktemp "${TMPFILE}"XXX` echo $outputfile >> "${TMPFILE}" - echo "${area} ${url}" >"$outputfile" + echo "${disabled}${area} ${url}" >"$outputfile" /usr/bin/curl -fILsS "${url}${source}" >>"$outputfile" 2>&1 & done @@ -24,4 +25,4 @@ /bin/rm "$file" done -/bin/rm "${TMPFILE}" \ No newline at end of file +/bin/rm "${TMPFILE}" ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits