wok diff get-sjphone/stuff/get-sjphone @ rev 4937

add/improve TAGS h* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 14:01:36 2010 +0000 (2010-02-16)
parents a44a4456c6f2
children 007b91d3da0b
line diff
     1.1 --- a/get-sjphone/stuff/get-sjphone	Wed Mar 11 12:07:13 2009 +0000
     1.2 +++ b/get-sjphone/stuff/get-sjphone	Tue Feb 16 14:01:36 2010 +0000
     1.3 @@ -16,7 +16,8 @@
     1.4  
     1.5  WEB_SITE="http://www.sjlabs.com/"
     1.6  VERSION="1.60.299"
     1.7 -URL="http://www.sjphone.org/softphone/SJphoneLnx-299a.tar.gz"
     1.8 +TARBALL="SJphoneLnx-299a.tar.gz"
     1.9 +URL="http://www.sjphone.org/softphone/$TARBALL"
    1.10  
    1.11  TMP_DIR=/tmp/get-sjphone-$$-$RANDOM
    1.12  CUR_DIR=$(pwd)
    1.13 @@ -24,9 +25,15 @@
    1.14  
    1.15  # Download tarball
    1.16  wget $URL
    1.17 +if [ ! -f $TARBALL ]; then
    1.18 +	cd $CUR_DIR
    1.19 +	rm -rf $TMP_DIR
    1.20 +	echo "Could not download $TARBALL. Exiting."
    1.21 +	exit 1
    1.22 +fi
    1.23  
    1.24  # Extract
    1.25 -tar xzf $(basename $URL)
    1.26 +tar xzf $TARBALL
    1.27  
    1.28  # Install files
    1.29  dir=sjphone-$VERSION/fs