[Pkg-ocaml-maint-commits] [SCM] approx upstream and debian packaging branch, master, updated. debian/3.3.0-27-g473adf6
Eric Cooper
ecc at cmu.edu
Fri Oct 24 21:09:26 UTC 2008
The following commit has been merged in the master branch:
commit 31d88f968760d425a7a75498bc6d3eef9cf70197
Author: Eric Cooper <ecc at cmu.edu>
Date: Fri Oct 24 17:02:07 2008 -0400
add release target to Makefile
diff --git a/Makefile b/Makefile
index d544843..d28186d 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,9 @@ clean:
$(OCAMLBUILD) $(OCAMLBUILD_OPTS) -clean
rm -f approx $(patsubst %,approx-%,$(programs))
+extra-clean: clean
+ rm -f *~ \#*
+
.PHONY: tests
test_programs = $(wildcard tests/*.ml)
@@ -36,3 +39,16 @@ tests:
echo $(OCAMLBUILD) $(OCAMLBUILD_OPTS) $$test.$(TARGET); \
$(OCAMLBUILD) $(OCAMLBUILD_OPTS) $$test.$(TARGET); \
done
+
+upstream-branch:
+ git-status | grep -q "^# On branch upstream"
+
+release: upstream-branch extra-clean
+ @set -e; \
+ version=$$(sed -n 's/^.*number = "\(.*\)".*$$/\1/p' version.ml); \
+ echo Tagging upstream/$$version; \
+ git tag -f -m "upstream version $$version" upstream/$$version; \
+ package=approx-$$version; \
+ tarball=../$$package.orig.tar.gz; \
+ echo Creating $$tarball; \
+ tar czf $$tarball --transform "s:^\./:$$package/:" --exclude=.git .
--
approx upstream and debian packaging
More information about the Pkg-ocaml-maint-commits
mailing list