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
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