[beast: 143/144] ROOT: mkrelease.sh: check for master and fix ssh warnings
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 143/144] ROOT: mkrelease.sh: check for master and fix ssh warnings
- Date: Sat, 19 Jan 2013 00:56:20 +0000 (UTC)
commit 6af9f454d4590afee7df46a276b23ddaf86eb28e
Author: Tim Janik <timj gnu org>
Date: Sat Jan 19 01:19:28 2013 +0100
ROOT: mkrelease.sh: check for master and fix ssh warnings
mkrelease.sh | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/mkrelease.sh b/mkrelease.sh
index d847b22..9bef59a 100755
--- a/mkrelease.sh
+++ b/mkrelease.sh
@@ -287,6 +287,10 @@ done
msg "Checking for even revision in version $VERSION..."
test "$REVISION" = `echo "$REVISION / 2 * 2" | bc` && ok \
|| fail "note: refusing to release development version with odd revision: $REVISION"
+ msg "Checking master to be the current branch..."
+ CBRANCH=`git name-rev --always --name-only HEAD`
+ test "$CBRANCH" = master && ok \
+ || fail "note: expecting releases to be made from 'master' branch"
msg "Checking HEAD to match upstream repository..."
HBRANCH=`git symbolic-ref HEAD | sed s,^refs/heads/,,`
HREMOTE=`git config --get "branch.$HBRANCH.remote"`
@@ -299,7 +303,7 @@ done
" $TCOMMIT != ${RCOMMIT:-<unknown-ref>}"
}
msg "Checking remote for unique release tarball..."
- ssh "$REMOTE_HOST" test ! -e "$REMOTE_PATH$TARBALL" && ok \
+ ssh -x "$REMOTE_HOST" test ! -e "$REMOTE_PATH$TARBALL" && ok \
|| fail "note: file already exists: $REMOTE_HOST:$REMOTE_PATH$TARBALL"
# planned steps
msg2 "* Planned: tag HEAD as '$VERSION' release..."
@@ -336,7 +340,7 @@ done
msg_ "* Uploading release tarball $TARBALL..."
rsync -lpt --delay-updates "$TARBALL" "$REMOTE_HOST:$REMOTE_PATH" && ok \
|| fail "note: rsync transfer failed"
- RLS=$(ssh "$REMOTE_HOST" ls -l \`readlink -f "$REMOTE_PATH/$TARBALL"\`)
+ RLS=$(ssh -x "$REMOTE_HOST" ls -l \`readlink -f "$REMOTE_PATH/$TARBALL"\`)
msg2 ">" "$RLS"
# push notes
$needs_head_push && \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]