From cc3cafd673785b68673e8b3aba224f45c33a1634 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 20 Oct 2013 09:04:03 -0700 Subject: [PATCH] Optimize the get-orig-source target * Optimize the get-orig-source target. Thanks, Anders Kaseorg. --- debian/changelog | 1 + debian/rules | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index ee7b0b6c3..931afdda6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,7 @@ openafs (1.6.5.1-1) UNRELEASED; urgency=low * Drop Recommends of libjs-jquery in openafs-doc. We're no longer replacing the embedded jQuery, pending a better fix in the Doxygen packaging. + * Optimize the get-orig-source target. Thanks, Anders Kaseorg. * Translation updates: - German, thanks Erik Pfannenstein. (Closes: #719154) diff --git a/debian/rules b/debian/rules index c0289a9f0..1211ddb01 100755 --- a/debian/rules +++ b/debian/rules @@ -84,11 +84,9 @@ REPO := git://git.openafs.org/openafs.git # installed and there's network connectivity to the upstream repository. get-orig-source: git archive --remote='$(REPO)' --prefix='openafs_$(DEBVERS).orig/' \ - --format=tar '$(TAG)' | tar xf - - rm -r openafs_$(DEBVERS).orig/src/WINNT - tar cf openafs_$(DEBVERS).orig.tar openafs_$(DEBVERS).orig - rm -r openafs_$(DEBVERS).orig - xz openafs_$(DEBVERS).orig.tar + --format=tar '$(TAG)' \ + | tar --delete 'openafs_$(DEBVERS).orig/src/WINNT' \ + | xz > 'openafs_$(DEBVERS).orig.tar.xz' # Use dh for most actions, with overrides below. %: -- 2.39.5