[packages/apache-mod_pagespeed: 4/7] get-source: do not trash original checkout dir with clean-source

glen glen at pld-linux.org
Tue Jul 14 01:39:32 CEST 2015


commit 839013310dc229b3cba42a76d5b2deac63ddc5a2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 13 21:47:19 2015 +0300

    get-source: do not trash original checkout dir with clean-source

 get-source.sh | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index 10822d1..3ef72e8 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -97,18 +97,23 @@ sed -i -re '/"url"/ s,"http[^"]+","'$repo_url'",' .gclient
 
 $gclient sync --nohooks -v
 
-cd src
+rm -rf $release_dir
+cp -al src $release_dir
+cd $release_dir
 
 sh -x $dir/clean-source.sh
 
 # Populate the LASTCHANGE file template as we will not include VCS info in tarball
 ./build/lastchange.sh . -o LASTCHANGE.in
 
-cd ../..
+cd ..
 
 XZ_OPT=-e9 \
-tar --transform="s:^$package/src:$release_dir:" \
-	-caf $tarball --exclude-vcs $package/src
+tar -caf $tarball --exclude-vcs $release_dir
+
+rm -rf $release_dir
+
+cd ..
 
 ../md5 $spec
 ../dropin $tarball &
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_pagespeed.git/commitdiff/7de28f263cde4557032a5696c84aad98bcfefa25



More information about the pld-cvs-commit mailing list