]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
clean empty dirs only in tarball creation
authorElan Ruusamäe <glen@delfi.ee>
Sun, 13 Jan 2013 15:12:01 +0000 (17:12 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 13 Jan 2013 15:12:01 +0000 (17:12 +0200)
clean-source.sh
get-source.sh

index 64ba65fd288e54123232d59db72c8379d35ca507..6861e5b799c83b311a215b8feb8f3031cb8a5e71 100755 (executable)
@@ -778,8 +778,10 @@ if [ "${nacl:-1}" != "0" ]; then
        rm -rf native_client/toolchain/linux_x86_newlib
 fi
 
-# cleanup empty dirs
-find -type d '!' -name '.' -print0 | sort -zr | xargs -0 rmdir --ignore-fail-on-non-empty > REMOVED-dirs.txt
+if [ "${emptydirs:-0}" != "0" ]; then
+       # cleanup empty dirs
+       find -type d '!' -name '.' -print0 | sort -zr | xargs -0 rmdir --ignore-fail-on-non-empty > REMOVED-dirs.txt
+fi
 
 # report what's in them
 for a in REMOVED-*.txt; do
index a4b549ed9f114908645123f5e86b133f19dc3454..15f8cfd61e89282eaa3e017ea1b149f86556dedc 100755 (executable)
@@ -76,7 +76,7 @@ else
 fi
 
 if [ "$CHANNEL" != "dev" ]; then
-       sh -x $WORK_DIR/clean-source.sh v8=$v8 protobuf=0
+       sh -x $WORK_DIR/clean-source.sh v8=$v8 emptydirs=1
 fi
 
 # do not keep REMOVED*.txt in tarball. they are visible in .log anyway
This page took 0.124017 seconds and 4 git commands to generate.