[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[glibc-doc-reference] 02/13: Switch to quilt 3.0 (quilt) format and add a get-orig-source target.



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

aurel32 pushed a commit to branch sid
in repository glibc-doc-reference.

commit b02120da8da07870660a62804ad67942cf281760
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Sat Dec 2 15:43:58 2017 +0100

    Switch to quilt 3.0 (quilt) format and add a get-orig-source target.
---
 debian/README.source |  6 ------
 debian/changelog     |  7 +++++++
 debian/rules         | 12 ++++++++++++
 debian/source/format |  2 +-
 4 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index a4c2769..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,6 +0,0 @@
-glibc-doc-reference_<version>.orig.tar.gz contains the glibc-<version>/manual
-directory of upstream http://ftp.gnu.org/gnu/glibc/glibc-<version>.tar.bz2
-It has been created with the following commands:
-  bzip2 -c -d glibc-2.13.tar.bz2 |\
-    tarcust -x 'glibc-2.131/(?!manual).*' |\
-    gzip -9 > glibc-doc-reference_2.13.orig.tar.gz
diff --git a/debian/changelog b/debian/changelog
index 0e9e3be..9a942bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+glibc-doc-reference (2.19-2) UNRELEASED; urgency=medium
+
+  * Switch to 3.0 (quilt) format.
+  * Add a get-orig-source target.
+
+ -- Aurelien Jarno <aurel32@debian.org>  Sat, 02 Dec 2017 15:39:35 +0100
+
 glibc-doc-reference (2.19-1) unstable; urgency=medium
 
   * Upload to unstable. 
diff --git a/debian/rules b/debian/rules
index ad36ed6..d786320 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,10 @@
 export LC_ALL=C
 
 UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '/^Version/ {print $$2}' | sed 's/-.*//')
+GLIBC_GIT = git://sourceware.org/git/glibc.git
+GLIBC_TAG = glibc-$(UPSTREAM_VERSION)
+DEB_DIR = glibc-doc-reference-$(UPSTREAM_VERSION)
+DEB_ORIG = ../glibc-doc-reference_$(UPSTREAM_VERSION).orig.tar.xz
 
 build-indep: build-stamp
 build-stamp:
@@ -60,5 +64,13 @@ binary-indep: build install
 	dh_md5sums
 	dh_builddeb
 
+get-orig-source: $(DEB_ORIG)
+$(DEB_ORIG):
+	dh_testdir
+	mkdir -p $(DEB_DIR)
+	git archive -v --remote=$(GLIBC_GIT) --format=tar $(GLIBC_TAG) | (tar -C $(DEB_DIR) -xf -)
+	tar --mode=go=rX,u+rw,a-s --owner=root --group=root --numeric-owner -Jcf $(DEB_ORIG) $(DEB_DIR)/manual
+	rm -rf $(DEB_DIR)
+
 binary: binary-indep binary-arch
 .PHONY: build-indep build-arch build clean binary-indep binary-arch binary install
diff --git a/debian/source/format b/debian/source/format
index d3827e7..163aaf8 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-1.0
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc-doc-reference.git


Reply to: