The following commit has been merged in the master branch:
commit c390768e11cc4dd6d17ba96431259c32fefc0dd9
Author: Goswin von Brederlow <goswin-...@web.de>
Date:   Sat Mar 10 16:29:43 2012 +0100

    Fix release target.

diff --git a/debian/rules b/debian/rules
index e9496ba..35c906f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,15 +48,15 @@ release:
          echo "Error: Uncommited changed.";                            \
          exit 1;                                                       \
        fi
-       @if [ ! "$(shell git branch)" = "* master" ]; then              \
+       @if ! git branch | grep -q "^* master$$"; then                  \
          echo "Error: Not in master branch.";                          \
          exit 1;                                                       \
        fi
-       @if git tag | grep "^debian/$(VERSION)$$"; then                 \
+       @if git tag | grep -q "^debian/$(VERSION)$$"; then              \
          echo "Error: Release $(VERSION) already exists.";             \
          exit 1;                                                       \
        fi
-       @if git tag | grep "^upsteam/$(UPSTREAM_VERSION)$$"; then       \
+       @if git tag | grep -q "^upsteam/$(UPSTREAM_VERSION)$$"; then    \
          echo "Upstream $(UPSTREAM_VERSION) already exists.";          \
        else                                                            \
          echo "Creating $(ORIG_NAME) ...";                             \

-- 
libaio-ocaml packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to