|
From: <bl...@us...> - 2004-01-14 16:33:22
|
Update of /cvsroot/devil-linux/build In directory sc8-pr-cvs1:/tmp/cvs-serv6898 Modified Files: update_src Log Message: And Friedrich said it couldn't be done ... :-) Index: update_src =================================================================== RCS file: /cvsroot/devil-linux/build/update_src,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- update_src 14 Jan 2004 04:51:50 -0000 1.22 +++ update_src 14 Jan 2004 16:33:19 -0000 1.23 @@ -29,17 +29,22 @@ ftps[4]="xenia.sote.hu" ftpd[4]="/pub/mirrors/devil-linux/devel/sources/$VERSION/" -menu[5]="Heiko @ home - internal mirror" -ftps[5]="192.168.0.2" -ftpd[5]="/ftp.devil-linux.org/devel/sources/$VERSION/" +menu[5]="University of Technology Graz/Austria - internal mirror" +ftps[5]="ftp.vc-graz.ac.at" +ftpd[5]="/pub/mirror/devil-linux/devel/sources/$VERSION/" -menu[6]="BS @ work - internal mirror" -ftps[6]="172.16.2.1" -ftpd[6]="/" +# Last low number be set to "EOF" to separate the high internal mirrors +menu[6]="EOF" +ftps[6]="EOF" +ftpd[6]="EOF" -menu[7]="University of Technology Graz/Austria - internal mirror" -ftps[7]="ftp.vc-graz.ac.at" -ftpd[7]="/pub/mirror/devil-linux/devel/sources/$VERSION/" +menu[98]="Heiko @ home - internal mirror" +ftps[98]="192.168.0.2" +ftpd[98]="/ftp.devil-linux.org/devel/sources/$VERSION/" + +menu[99]="BS @ work - internal mirror" +ftps[99]="172.16.2.1" +ftpd[99]="/" function menu () { local menuitems=${#menu[@]} # number of menuitems @@ -47,6 +52,7 @@ ret=255 while [ $ret -eq 255 ]; do + j=0 echo echo "Note: when starting to pull the sources for the first" echo " time try to use a mirror and then call update_src" @@ -55,14 +61,19 @@ echo echo "The list of devil linux mirrors:" for ((i=1; $i - $menuitems - 1; i++)); do - echo " ($i) ${menu[$i]}" + if [ "${menu[$i]}" = "EOF" ]; then + let j=99-$menuitems+$i + continue + fi + let j++ + echo " ($j) ${menu[$j]}" done echo echo -n "Please select one from the list above or (e)xit [1]: " read input - test -n "$input" -a $input -gt 0 -a $input -le $menuitems 2>/dev/null && + test -n "$input" -a $input -gt 0 -a "${menu[$input]}" != "EOF" -a -n "${menu[$input]}" 2>/dev/null && ret=$input test -n "$input" -a \( "$input" = "e" -o "$input" = "E" \) 2>/dev/null && ret=0 |