diff options
-rwxr-xr-x | scripts/do-release.sh | 18 |
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 |