wok diff get-OpenOffice3/stuff/get-OpenOffice3 @ rev 10112
Up: groff to 1.21.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 15:33:26 2011 +0000 (2011-05-20) |
parents | 22293fc3d544 |
children | 0e12146570e9 |
line diff
1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3 Wed Oct 13 17:18:25 2010 +0200 1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3 Fri May 20 15:33:26 2011 +0000 1.3 @@ -10,22 +10,35 @@ 1.4 ROOT="$1" 1.5 PATTERN="Linux_x86_install-rpm" 1.6 1.7 +for MIRROR in \ 1.8 +http://mirror.switch.ch/ftp/mirror/OpenOffice \ 1.9 +http://openoffice.cict.fr \ 1.10 +http://wwwftp.ciril.fr/pub/openoffice \ 1.11 +http://artfiles.org/openoffice.org \ 1.12 +http://vesta.informatik.rwth-aachen.de/ftp/pub/mirror/OpenOffice \ 1.13 +http://ftp.ntua.gr/pub/OpenOffice \ 1.14 +http://ftp.iitm.ac.in/openoffice \ 1.15 +http://www.ring.gr.jp/archives/misc/openoffice \ 1.16 +http://ftp.nluug.nl/pub/office/openoffice \ 1.17 + 1.18 +do wget -O - $MIRROR/ 2> /dev/null | grep -q localized && break ; done 1.19 + 1.20 DIR="stable" 1.21 -LOC=$(wget -O - http://openofficeorg.secsup.org/localized/ 2> /dev/null \ 1.22 +LOC=$(wget -O - $MIRROR/localized/ 2> /dev/null \ 1.23 | grep -E ">$LANG/|>${LANG/_/-}/|>${LANG%_*}/" | head -1 | sed 's/.*href=\"\(.*\)\/\".*/\1/') 1.24 [ -n "$LOC" ] && DIR="localized/$LOC" 1.25 1.26 -VERSION="$(basename $(wget -O - http://openofficeorg.secsup.org/$DIR/ \ 1.27 +VERSION="$(basename $(wget -O - $MIRROR/$DIR/ \ 1.28 2> /dev/null | grep href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/'))" 1.29 if [ -z "$VERSION" ]; then 1.30 echo "Can't find VERSION. Abort." 1.31 exit 0 1.32 fi 1.33 echo "Selecting $DIR version $VERSION ..." 1.34 -TARBALL="$(wget -O - http://openofficeorg.secsup.org/$DIR/$VERSION/ \ 1.35 +TARBALL="$(wget -O - $MIRROR/$DIR/$VERSION/ \ 1.36 2> /dev/null | grep $PATTERN | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/')" 1.37 echo "Archive is $TARBALL ..." 1.38 -WGET_URL=ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/$DIR/$VERSION/$TARBALL 1.39 +WGET_URL=$MIRROR/$DIR/$VERSION/$TARBALL 1.40 1.41 TEMP_DIR="/tmp/$PACKAGE.$$" 1.42 SOURCE_DIR="/tmp/src.$$"