diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-05-01 22:25:26 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-05-01 22:25:26 +0200 |
commit | a9e30b6891426041d8ecc1a5f15d7201fee5987b (patch) | |
tree | 3df7996f8741bf2242bdd6728f6a6429508b9197 | |
parent | 3f321c2af7aecba44fb5f1c59045c9109a86f1a6 (diff) | |
download | buildscripts-a9e30b6891426041d8ecc1a5f15d7201fee5987b.tar.gz buildscripts-a9e30b6891426041d8ecc1a5f15d7201fee5987b.tar.bz2 buildscripts-a9e30b6891426041d8ecc1a5f15d7201fee5987b.zip |
refurbished x2go-tagbuildmain to a script that uses a branch to mark our blessed code for package building
-rwxr-xr-x | bin/x2go-updatebuildmain | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bin/x2go-updatebuildmain b/bin/x2go-updatebuildmain new file mode 100755 index 0000000..bce80c1 --- /dev/null +++ b/bin/x2go-updatebuildmain @@ -0,0 +1,35 @@ +#!/bin/bash + +# Copyright (C) 2010-2011 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +# +# Python X2go is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Python X2go is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -e + +GITPROJECT=$(basename $(pwd)) +REF=$1 + +# we need to be within a working copy (base folder) and we need a <REF>!!! +test -z $1 || test -d ./.git || { + echo "usage: $(basename $0) <REF>" + echo "Call this command from within the base folder of an X2go Git project's working copy..." + exit -1 +} + +# update the build-main branch with our new blessed reference +git pull +git pull build-main +git push origin $REF:build-main
\ No newline at end of file |