[Pkg-zsh-commits] [zsh-syntax-highlighting] 04/07: d/rules: Add _origtar target.

Daniel Shahaf danielsh at apache.org
Tue Oct 25 16:02:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

danielsh-guest pushed a commit to branch debian/master
in repository zsh-syntax-highlighting.

commit e5001bcd240dbb1e4a895106e18f5dc7580c87ad
Author: Daniel Shahaf <d.s at daniel.shahaf.name>
Date:   Sat Oct 22 20:16:04 2016 +0000

    d/rules: Add _origtar target.
---
 debian/README.source | 4 ++++
 debian/rules         | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..c07046b
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+The `_origtar` target in debian/rules creates an orig.tar.xz tarball from the
+upstream git tag, which is stored in this repository too.
+
+Its advantage over uscan is that it verifies the upstream signature.
diff --git a/debian/rules b/debian/rules
index 27b64c1..1188c99 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,3 +14,9 @@ override_dh_installchangelogs:
 
 %:
 	dh $@
+
+_origtar: version=$(shell dpkg-parsechangelog -SVersion | sed 's/-[^-]*$$//')
+_origtar:
+	git tag --verify $(version)
+	git archive --format=tar --output=../zsh-syntax-highlighting_$(version).orig.tar --prefix=zsh-syntax-highlighting-$(version)/ $(version)
+	xz -7v ../zsh-syntax-highlighting_$(version).orig.tar

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-zsh/zsh-syntax-highlighting.git



More information about the Pkg-zsh-commits mailing list