tazwok rev 508

Add install var and some compatable to download function for it to when coreutils becomes the norm.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 06 09:53:22 2011 +0000 (2011-05-06)
parents 66a948c9d366
children 30f7be81cf9d
files tazwok
line diff
     1.1 --- a/tazwok	Fri May 06 08:19:55 2011 +0000
     1.2 +++ b/tazwok	Fri May 06 09:53:22 2011 +0000
     1.3 @@ -419,6 +419,8 @@
     1.4  	else
     1.5  		_pkg=$src/_pkg
     1.6  	fi
     1.7 +	# compatibly with cookutils
     1.8 +	install=$_pkg
     1.9  }
    1.10  
    1.11  # Output $VERSION-$EXTRAVERSION using packages.txt
    1.12 @@ -745,8 +747,12 @@
    1.13  					continue
    1.14  				fi
    1.15  			;;
    1.16 -			subversion\|*)
    1.17 -				file=${file#subversion|}
    1.18 +			svn*|subversion*)
    1.19 +				if $(echo "$WGET_URL" | fgrep -q svn); then
    1.20 +					file=${WGET_URL#svn|}
    1.21 +				else
    1.22 +					file=${WGET_URL#subversion|}
    1.23 +				fi
    1.24  				[ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/subversion/receipt ] && tazpkg get-install subversion --forced
    1.25  				if [ -f $INSTALLED/subversion/receipt ]; then
    1.26  					mkdir $tmp_src
    1.27 @@ -762,8 +768,12 @@
    1.28  					continue
    1.29  				fi
    1.30  			;;
    1.31 -			mercurial\|*)
    1.32 -				file=${file#mercurial|}
    1.33 +			hg*|mercurial*)
    1.34 +				if $(echo "$WGET_URL" | fgrep -q hg); then
    1.35 +					file=${WGET_URL#hg|}
    1.36 +				else
    1.37 +					file=${WGET_URL#mercurial|}
    1.38 +				fi
    1.39  				[ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/mercurial/receipt ] && tazpkg get-install mercurial --forced
    1.40  				if [ -f $INSTALLED/mercurial/receipt ]; then
    1.41  					mkdir $tmp_src