[packages/libpagespeed] use tar --transform instead of tempoary copy
glen
glen at pld-linux.org
Tue Mar 12 00:13:57 CET 2013
commit 7908194498ed2ffd9a4cf6d0688ab8e6b9498f26
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 12 01:13:20 2013 +0200
use tar --transform instead of tempoary copy
get-source.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index 722a173..d6615f5 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -92,9 +92,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/libpagespeed.git/commitdiff/7908194498ed2ffd9a4cf6d0688ab8e6b9498f26
More information about the pld-cvs-commit
mailing list