[Pkg-ocaml-maint-commits] [SCM] libaio-ocaml packaging branch, master, updated. 8171635097ecb5ce0fbc33ec2b5f8a5b3d969e43

Goswin von Brederlow goswin-v-b at web.de
Sat Mar 10 15:35:55 UTC 2012


The following commit has been merged in the master branch:
commit c390768e11cc4dd6d17ba96431259c32fefc0dd9
Author: Goswin von Brederlow <goswin-v-b at 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



More information about the Pkg-ocaml-maint-commits mailing list