wok-current rev 6702

get-OpenOffice3: any localization (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 13 17:18:25 2010 +0200 (2010-10-13)
parents e2384da86879
children a145271c0f11
files get-OpenOffice3/stuff/get-OpenOffice3
line diff
     1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3	Wed Oct 13 17:14:24 2010 +0200
     1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3	Wed Oct 13 17:18:25 2010 +0200
     1.3 @@ -12,7 +12,7 @@
     1.4  
     1.5  DIR="stable"
     1.6  LOC=$(wget -O - http://openofficeorg.secsup.org/localized/ 2> /dev/null \
     1.7 -| grep -E ">$LANG/|>${LANG%_*}/|>${LANG/_/-}/" | tail -1 | sed 's/.*href=\"\(.*\)\/\".*/\1/')
     1.8 +| grep -E ">$LANG/|>${LANG/_/-}/|>${LANG%_*}/" | head -1 | sed 's/.*href=\"\(.*\)\/\".*/\1/')
     1.9  [ -n "$LOC" ] && DIR="localized/$LOC"
    1.10  
    1.11  VERSION="$(basename $(wget -O - http://openofficeorg.secsup.org/$DIR/ \