[Pkg-zsh-commits] [zsh] 01/01: Add a get-orig-source target to debian/rules
Axel Beckert
abe at deuxchevaux.org
Fri Oct 10 14:25:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch debian
in repository zsh.
commit 8ece55fe2d7e29c45643f44dae387c4345a313c1
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Oct 10 16:24:15 2014 +0200
Add a get-orig-source target to debian/rules
… instead of describing how to do it in the packaging workflow
documentation.
---
debian/pkg-zsh-workflow.md | 6 +++---
debian/rules | 7 ++++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/debian/pkg-zsh-workflow.md b/debian/pkg-zsh-workflow.md
index 4eda769..7f37b30 100644
--- a/debian/pkg-zsh-workflow.md
+++ b/debian/pkg-zsh-workflow.md
@@ -212,9 +212,9 @@ enforced as follows:
### Create the fake orig tar ball (until we can work with upstream's tarball)
- % version=5.0.7
- % git archive --format=tar --output=../zsh_${version}.orig.tar --prefix=zsh-${version}/ zsh-$version
- % xz -7vf ../zsh_${version}.orig.tar
+This requires the upstream release to be properly tagged.
+
+ % make -f debian/rules get-orig-source
### Remove all quilt patches which are applied upstream
diff --git a/debian/rules b/debian/rules
index 611fa89..292361b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -228,4 +228,9 @@ binary-arch: binary-arch-dynamic binary-arch-static binary-arch-dev
binary: binary-indep binary-arch binary-arch-static binary-arch-dev
-.PHONY: binary binary-arch binary-indep clean binary-arch-dynamic binary-arch-static binary-arch-dev
+get-orig-source: version=$(shell git describe --tags --abbrev=0 --match='zsh-*' | sed -e 's/^zsh-//')
+get-orig-source:
+ git archive --format=tar --output=../zsh_$(version).orig.tar --prefix=zsh-$(version)/ zsh-$(version)
+ xz -7v ../zsh_$(version).orig.tar
+
+.PHONY: binary binary-arch binary-indep clean binary-arch-dynamic binary-arch-static binary-arch-dev get-orig-source
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git
More information about the Pkg-zsh-commits
mailing list