Commit e8093051 authored by Aurelien Jarno's avatar Aurelien Jarno

debian/rules: do a local bare clone before using git archive as it doesn't support https.

parent 8b65af7e
......@@ -2,6 +2,8 @@ glibc-doc-reference (2.26-2) UNRELEASED; urgency=medium
* debian/control: Update Vcs-Git and Vcs-Browser fields following the move
to Salsa.
* debian/rules: do a local bare clone before using git archive as it doesn't
support https.
-- Aurelien Jarno <aurel32@debian.org> Sat, 03 Feb 2018 15:28:57 +0100
......
......@@ -4,6 +4,7 @@ DEB_VERSION = $(shell dpkg-parsechangelog | awk '/^Version/ {print $$2}')
UPSTREAM_VERSION = $(shell echo $(DEB_VERSION) | sed 's/-.*//')
GLIBC_GIT = https://sourceware.org/git/glibc.git
GLIBC_TAG = glibc-$(UPSTREAM_VERSION)
GLIBC_CHECKOUT = glibc-checkout
DEB_DIR = glibc-doc-reference-$(UPSTREAM_VERSION)
DEB_ORIG = ../glibc-doc-reference_$(UPSTREAM_VERSION).orig.tar.xz
......@@ -26,11 +27,12 @@ override_dh_auto_clean:
get-orig-source: $(DEB_ORIG)
$(DEB_ORIG):
dh_testdir
git clone --bare $(GLIBC_GIT) $(GLIBC_CHECKOUT)
mkdir -p $(DEB_DIR)
git archive -v --remote=$(GLIBC_GIT) --format=tar $(GLIBC_TAG) | (tar -C $(DEB_DIR) -xf -)
(cd $(GLIBC_CHECKOUT) && git archive -v --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 \
$(DEB_DIR)/scripts/mkinstalldirs \
$(DEB_DIR)/scripts/move-if-change \
`find $(DEB_DIR) -name "libm-test-ulps*"`
rm -rf $(DEB_DIR)
rm -rf $(DEB_DIR) $(GLIBC_CHECKOUT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment