diff options
author | omega <marco.biasco@gmail.com> | 2009-04-26 11:55:09 +0200 |
---|---|---|
committer | omega <marco.biasco@gmail.com> | 2009-04-26 11:55:09 +0200 |
commit | 251f186b7c8b0d7c95375a9758dbf9a0f8def690 (patch) | |
tree | b6d8d2d693221a0c8f8ed90a06e1b294c342616d | |
parent | 4c5cc02c2a7d0146b7a09555618b1ee21c79024d (diff) | |
download | scripts-251f186b7c8b0d7c95375a9758dbf9a0f8def690.tar.gz scripts-251f186b7c8b0d7c95375a9758dbf9a0f8def690.tar.bz2 |
Re-added throw plugin + minor update
-rwxr-xr-x | git-compiz | 18 | ||||
-rw-r--r-- | git-compiz.def | 5 |
2 files changed, 18 insertions, 5 deletions
@@ -371,7 +371,11 @@ printinfo space # TODO: put the downloaded files from this function into a separate folder (git/ or something similar) get_repo() { -b=`echo $1 | sed 's/.*\///g'` +if (echo $1 | grep -q '%writeto%'); then + b=`echo $1 | sed 's|.*%writeto%||'` +else + b=`echo $1 | sed 's/.*\///g'` +fi logcmd echo ">> $b <<" logcmd echo @@ -430,7 +434,11 @@ else # download via wget printinfo info "${INFO_DOWNLOAD//%s/$b}"; logcmd echo - wget -nv $1 + if (echo $1 | grep -q '%writeto%'); then + wget -O $b -nv `echo $1 | sed 's|%writeto%.*||'` + else + wget -nv $1 + fi # extract printinfo info "${INFO_EXTRACT//%s/$b}"; logcmd echo @@ -787,7 +795,11 @@ fi ## Build everything else now. for a in $BASE $EMERALD $I18N $DE $PLUGINS; do - b=`echo $a | sed 's/.*\///g'` + if (echo $a | grep -q '%writeto%'); then + b=`echo $a | sed 's|.*%writeto%||'` + else + b=`echo $a | sed 's/.*\///g'` + fi get_repo $a $REPO if ! build_wrapper `([ -d $b ] && echo $b) || ([ -d $b-http ] && echo $b-http)` "$ARGS --prefix=$PREFIX --libdir=$PREFIX/$LIBDIR"; then bail_ask "${ERROR_BUILD_2//%s/$b} !" diff --git a/git-compiz.def b/git-compiz.def index b78c10a..f574864 100644 --- a/git-compiz.def +++ b/git-compiz.def @@ -113,8 +113,9 @@ users/smspillaz/peek users/smspillaz/simple-animations users/warlock/freewins users/xytovl/newton -http://somelinuxguy94.googlepages.com/wizard.tar.gz -http://somelinuxguy94.googlepages.com/localviewport.tar.gz +http://sites.google.com/site/gitcompiz08/Home/localviewport.tar.gz?attredirects=0%writeto%localviewport.tar.gz +http://sites.google.com/site/gitcompiz08/Home/wizard.tar.gz?attredirects=0%writeto%wizard.tar.gz +http://sites.google.com/site/gitcompiz08/Home/throw.tar.gz?attredirects=0%writeto%throw.tar.gz " ## Repository |