summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromega <marco.biasco@gmail.com>2009-04-26 11:51:59 +0200
committeromega <marco.biasco@gmail.com>2009-04-26 11:51:59 +0200
commit4c5cc02c2a7d0146b7a09555618b1ee21c79024d (patch)
tree5a99ebcb561d419408f17074587e2d8f948f1a51
parent5c2b4c410bb6fc06a3f069059de7a39e4a6e10a1 (diff)
downloadscripts-4c5cc02c2a7d0146b7a09555618b1ee21c79024d.tar.gz
scripts-4c5cc02c2a7d0146b7a09555618b1ee21c79024d.tar.bz2
Fixed again
-rwxr-xr-xgit-compiz29
-rw-r--r--git-compiz.def5
2 files changed, 12 insertions, 22 deletions
diff --git a/git-compiz b/git-compiz
index 06609b0..41f581a 100755
--- a/git-compiz
+++ b/git-compiz
@@ -372,12 +372,7 @@ printinfo space
get_repo()
{
b=`echo $1 | sed 's/.*\///g'`
-if (echo $1 | grep -q '%writeto%'); then
- REALNAME=`echo $1 | sed 's|.*%writeto%||'`
-else
- REALNAME=$b
-fi
-logcmd echo ">> $REALNAME <<"
+logcmd echo ">> $b <<"
logcmd echo
test -f branches/$BRANCH || logcmd echo "${ERROR_BRANCH//%s/branches/$BRANCH}"
@@ -435,23 +430,19 @@ else
# download via wget
printinfo info "${INFO_DOWNLOAD//%s/$b}";
logcmd echo
- if (echo $1 | grep -q '%writeto%'); then
- wget -O $REALNAME -nv `echo $1 | sed 's|%writeto%.*||'`
- else
- wget -nv $1
- fi
+ wget -nv $1
# extract
printinfo info "${INFO_EXTRACT//%s/$b}";
logcmd echo
- (echo $REALNAME | grep -qe tar.bz2 -qe tar.gz -qe zip) && \
- mkdir $REALNAME-http && cd $REALNAME-http && \
- (if (echo $REALNAME | grep -q tar.bz2); then
- logcmd tar -xjf $OLDPWD/$REALNAME
- elif (echo $REALNAME | grep -q tar.gz); then
- logcmd tar -xzf $OLDPWD/$REALNAME
- elif (echo $REALNAME | grep -q zip); then
- logcmd unzip $OLDPWD/$REALNAME
+ (echo $b | grep -qe tar.bz2 -qe tar.gz -qe zip) && \
+ mkdir $b-http && cd $b-http && \
+ (if (echo $b | grep -q tar.bz2); then
+ logcmd tar -xjf $OLDPWD/$b
+ elif (echo $b | grep -q tar.gz); then
+ logcmd tar -xzf $OLDPWD/$b
+ elif (echo $b | grep -q zip); then
+ logcmd unzip $OLDPWD/$b
fi) && \
[ -d "$(ls)" ] && export USELESSDIR=$(ls) && mv $USELESSDIR/* ./ && rmdir $USELESSDIR
diff --git a/git-compiz.def b/git-compiz.def
index f574864..b78c10a 100644
--- a/git-compiz.def
+++ b/git-compiz.def
@@ -113,9 +113,8 @@ users/smspillaz/peek
users/smspillaz/simple-animations
users/warlock/freewins
users/xytovl/newton
-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
+http://somelinuxguy94.googlepages.com/wizard.tar.gz
+http://somelinuxguy94.googlepages.com/localviewport.tar.gz
"
## Repository