]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Optimize the get-orig-source target
authorRuss Allbery <rra@debian.org>
Sun, 20 Oct 2013 16:04:03 +0000 (09:04 -0700)
committerRuss Allbery <rra@debian.org>
Sun, 20 Oct 2013 16:04:03 +0000 (09:04 -0700)
* Optimize the get-orig-source target.  Thanks, Anders Kaseorg.

debian/changelog
debian/rules

index ee7b0b6c3193d315158d8be814f63da892bb248e..931afdda629ce14f9b3987e4a14b2ae7084a6f89 100644 (file)
@@ -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)
 
index c0289a9f0356d2c52137c26cbcc4c02da9904580..1211ddb014060cdc782d06a7b2271871b7b69347 100755 (executable)
@@ -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.
 %: