[packages/apache-mod_pagespeed] use tar transform instead of copying

glen glen at pld-linux.org
Sun Mar 24 16:45:05 CET 2013


commit 563e8b856fda3eb41ebc10d4d39ef28a95df6fbe
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 24 17:40:14 2013 +0200

    use tar transform instead of copying

 get-source.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index a1a39c0..cf72b98 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -87,9 +87,9 @@ sed -i -re '/"url"/ s,"http[^"]+","'$svnurl'",' .gclient
 (cd src && svnversion > LASTCHANGE.in)
 cd ..
 
-cp -al $package/src $release_dir
-XZ_OPT=-e9 tar -caf $tarball --exclude-vcs $release_dir
-rm -rf $release_dir
+XZ_OPT=-e9 \
+tar --transform="s:^$package/src:$release_dir:" \
+	-caf $tarball --exclude-vcs $package/src
 
 ../md5 $spec
 ../dropin $tarball &
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_pagespeed.git/commitdiff/563e8b856fda3eb41ebc10d4d39ef28a95df6fbe



More information about the pld-cvs-commit mailing list