diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-03-06 15:48:45 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-20 17:19:09 +0100 |
commit | 9e4d3274c6f152bbe6ddaca5dfdcce7ed1e7a6b5 (patch) | |
tree | 14e9b048b99c05e85fe61b4d6f6ce7697a9e1853 /tools | |
parent | 0c598746ad2080684afe81e1720ff969c5137770 (diff) |
Update/fix add-dependency.sh script a bit
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/add-dependency.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/add-dependency.sh b/tools/add-dependency.sh index cc03203..9351506 100755 --- a/tools/add-dependency.sh +++ b/tools/add-dependency.sh @@ -2,30 +2,29 @@ # usage: # sh tools/add-dependency.sh /home/andoni/cerbero/sources/local libtasn1 2.11 http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.11.tar.gz "tar -xvzf" +set -e + PREFIX=$1 DEPENDENCY=$2 VERSION=$3 LOCATION=$4 EXTRACT=$5 -SSH_LOGIN="amorales@git.keema.collabora.co.uk" +SSH_LOGIN="git.keema.collabora.co.uk" GIT_ROOT="/srv/git.keema.collabora.co.uk/git/gst-sdk" -REMOTE_GIT_ROOT="ssh+git://amorales@git.keema.collabora.co.uk/git/gst-sdk" +REMOTE_GIT_ROOT="ssh+git://git.keema.collabora.co.uk/git/gst-sdk" curdir=`pwd` ssh $SSH_LOGIN "git init --bare $GIT_ROOT/$DEPENDENCY.git" git init $PREFIX/$DEPENDENCY -chdir $PREFIX/$DEPENDENCY +cd $PREFIX/$DEPENDENCY wget $LOCATION $EXTRACT $DEPENDENCY* mv $DEPENDENCY-$VERSION/* . -rm *.tar.xz -rm *.tar.gz -rm *.tar.bz2 -rm *.zip +rm -f *.tar.xz *.tar.gz *.tar.bz2 *.zip rm -rf $DEPENDENCY-$VERSION git add * git commit -m "Import upstream release $DEPENDENCY-$VERSION" @@ -37,5 +36,5 @@ git push origin sdk-$VERSION git push origin upstream git push --tags -chdir $curdir +cd $curdir ./cerbero-uninstalled add-recipe $DEPENDENCY $VERSION |