wok-next rev 7700

get-upx: get last version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 18 21:50:54 2010 +0100 (2010-12-18)
parents 2ad3eb5127a2
children 8a65b03a271a
files get-upx/stuff/get-upx
line diff
     1.1 --- a/get-upx/stuff/get-upx	Sat Dec 18 14:13:35 2010 +0000
     1.2 +++ b/get-upx/stuff/get-upx	Sat Dec 18 21:50:54 2010 +0100
     1.3 @@ -2,8 +2,10 @@
     1.4  
     1.5  ROOT="$1"
     1.6  VERSION="3.03"
     1.7 -TARBALL="upx-$VERSION-i386_linux.tar.bz2"
     1.8  WEB_SITE="http://upx.sourceforge.net/"
     1.9 +SUF="i386_linux.tar.bz2"
    1.10 +VERSION=$(wget -O - $WEB_SITE | grep "$SUF\"" | sed "s|.*upx-\(.*\)-$SUF.*|\1|")
    1.11 +TARBALL="upx-$VERSION-$SUF"
    1.12  WGET_URL="${WEB_SITE}download/$TARBALL"
    1.13  
    1.14  if test $(id -u) != 0 ; then