summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-10-10 16:24:15 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-10-10 16:24:15 +0200
commit8ece55fe2d7e29c45643f44dae387c4345a313c1 (patch)
treec87eb1641041204d881f3cbcddcd4dfd3218693f
parent329445afc55e005c3709d1995410467443bc37f4 (diff)
downloadzsh-8ece55fe2d7e29c45643f44dae387c4345a313c1.tar.gz
zsh-8ece55fe2d7e29c45643f44dae387c4345a313c1.zip
Add a get-orig-source target to debian/rules
… instead of describing how to do it in the packaging workflow documentation.
-rw-r--r--debian/pkg-zsh-workflow.md6
-rwxr-xr-xdebian/rules7
2 files changed, 9 insertions, 4 deletions
diff --git a/debian/pkg-zsh-workflow.md b/debian/pkg-zsh-workflow.md
index 4eda7699d..7f37b30ec 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 611fa89e5..292361bc7 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