[Pkg-ocaml-maint-commits] [approx] 12/16: create tarball using git-archive
Eric Cooper
ecc at cmu.edu
Mon Dec 9 15:44:04 UTC 2013
This is an automated email from the git hooks/post-receive script.
ecc-guest pushed a commit to branch upstream
in repository approx.
commit 41902f463bbf31919d4ff0bcde012e3fe3681729
Author: Eric Cooper <ecc at cmu.edu>
Date: Fri Dec 6 17:20:42 2013 -0500
create tarball using git-archive
---
Makefile | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index cf8dc83..015a2f5 100644
--- a/Makefile
+++ b/Makefile
@@ -41,11 +41,8 @@ tests: $(subst .ml,,$(wildcard tests/*.ml))
$(OCAMLBUILD) $(OCAMLBUILD_OPTS) $@.$(TARGET)
version := $(shell sed -n 's/^let version = "\(.*\)"$$/\1/p' config.ml)
-tarball := approx_$(version).orig.tar.gz
package := approx-$(version)
-excludes := $(tarball) .git _build "*~" "\#*"
+tarball := $(package).tar.gz
tarball:
- touch $(tarball)
- tar -czf $(tarball) $(excludes:%=--exclude=%) \
- --transform "s:^\.$$:$(package):;s:^\./:$(package)/:" .
+ git archive -o $(tarball) --prefix $(package)/ HEAD
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git
More information about the Pkg-ocaml-maint-commits
mailing list