]> Savannah Git Hosting - gnulib.git/commitdiff
do-release-commit-and-tag: avoid shell syntax error
authorEric Blake <eblake@redhat.com>
Sat, 31 Dec 2016 20:44:51 +0000 (14:44 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 31 Dec 2016 20:44:51 +0000 (14:44 -0600)
Tagging during a rebase doesn't make sense, but it at least should
not choke with:

$ ./build-aux/do-release-commit-and-tag 1.4.18 stable
./build-aux/do-release-commit-and-tag: line 146: test: too many arguments
do-release-commit-and-tag: not on branch (no branch, rebasing branch-1.4)

* build-aux/do-release-commit-and-tag (curr_br): $branch can
contain spaces when rebasing.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
build-aux/do-release-commit-and-tag

index 5682403eb24a04fbad6cafbd3f5856098051e53c..6d893f46506bb01d41887d07716ce22268e8a2c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-12-31  Eric Blake  <eblake@redhat.com>
 
+       do-release-commit-and-tag: avoid shell syntax error
+       * build-aux/do-release-commit-and-tag (curr_br): $branch can
+       contain spaces when rebasing.
+
        maint.mk: hoist gnulib_dir definition earlier
        * top/maint.mk (gnulib_dir): Move near top of file.
 
index b4f3251f8c8f4a599b74be39b28b6e0b18429a8c..02e5f52d4a2ffda841917b9e4562dd9ce73ee065 100755 (executable)
@@ -3,7 +3,7 @@
 # controlled .prev-version file, automate the procedure by which we record
 # the date, release-type and version string in the NEWS file.  That commit
 # will serve to identify the release, so apply a signed tag to it as well.
-VERSION=2016-01-12.23 # UTC
+VERSION=2016-12-31.14 # UTC
 
 # Note: this is a bash script (could be zsh or dash)
 
@@ -143,7 +143,7 @@ esac
 
 # Ensure the current branch name is correct:
 curr_br=$(git rev-parse --symbolic-full-name HEAD)
-test "$curr_br" = refs/heads/$branch || die not on branch $branch
+test "$curr_br" = "refs/heads/$branch" || die not on branch $branch
 
 # Extract package name from Makefile.
 Makefile=$builddir/Makefile