aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-10-08 00:33:39 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-10-08 00:33:39 +0530
commit16b4ffdf021c089e3c9228529f389992b6b84f39 (patch)
tree8a009ea06eaa378fd09ab4976bdde63221acb575
parentExtra Whitespace. (diff)
downloadautotua-16b4ffdf021c089e3c9228529f389992b6b84f39.tar.gz
autotua-16b4ffdf021c089e3c9228529f389992b6b84f39.tar.bz2
autotua-16b4ffdf021c089e3c9228529f389992b6b84f39.zip
Changes to the release script (do-release.sh)
* Add support for releasing specific parts of AutotuA instead of the whole thing at once.
-rwxr-xr-xscripts/do-release.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/do-release.sh b/scripts/do-release.sh
index c1cf5a2..21ee0db 100755
--- a/scripts/do-release.sh
+++ b/scripts/do-release.sh
@@ -3,6 +3,7 @@
set -e
V="${1}"
+W="${2}"
RDIR='/home/nirbheek/projects/AutotuA/releases'
REPO='/home/nirbheek/projects/AutotuA/autotua.git'
TMPDIR='/tmp/autotua-release'
@@ -10,6 +11,7 @@ DESTDIR="${RDIR}/${V}"
REMOTE="bheekling@dev.gentooexperimental.org:~/public_html/files/autotua/"
test -z ${V} && echo "Specify version plz, kthx." && exit 1
+test -z ${W} && echo "Specify what to release" && exit 1
rm -rf "${TMPDIR}"
mkdir "${TMPDIR}"
@@ -61,7 +63,17 @@ bumb_ebuild() {
ebuild ${P}.ebuild digest
}
-release_slave
-release_master
+if test "${W}" = "slave"; then
+ release_slave
+ bumb_ebuild
+elif test "${W}" = "master"; then
+ release_master
+elif test "${W}" = "both"; then
+ release_slave
+ release_master
+ bumb_ebuild
+else
+ echo "Please specify which to release (slave|master|both)"
+ exit 1
+fi
upload_archives
-bumb_ebuild