[packages/apache-mod_pagespeed/dev-1.8: 9/11] cleanup more unneeded files for build

glen glen at pld-linux.org
Tue Jan 27 17:31:22 CET 2015


commit d1259ece3a204afd4d5d7b6196c33be7eda86661
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Dec 16 23:04:44 2014 +0200

    cleanup more unneeded files for build

 clean-source.sh | 36 +++++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/clean-source.sh b/clean-source.sh
index 4a111d4..4bb9bdf 100755
--- a/clean-source.sh
+++ b/clean-source.sh
@@ -18,12 +18,42 @@ almost_strip_dirs \
 	third_party/httpd24/ \
 	third_party/instaweb/ \
 	third_party/openssl/ \
+	third_party/chromium/src/base/third_party/superfasthash/ \
+	third_party/chromium/src/base/third_party/symbolize/ \
+	third_party/chromium/src/base/third_party/xdg_mime/ \
+	third_party/chromium/src/base/third_party/xdg_user_dirs/ \
 
 # some more unneeded files for build
-rm -r third_party/chromium/src/net
-rm -r third_party/chromium/src/chrome
 rm -r net/instaweb/rewriter/testdata
+rm -r third_party/aprutil/gen
+rm -r third_party/chromium/src/base/test
+rm -r third_party/chromium/src/chrome
+rm -r third_party/chromium/src/net
+rm -r third_party/gflags/src/windows
+rm -r third_party/giflib/windows
+rm -r third_party/google-sparsehash/src/windows
+rm -r third_party/libjpeg_turbo/src/{mac,win}
+rm -r third_party/protobuf/java
+rm -r third_party/protobuf/src/google/protobuf/testdata
+rm -r third_party/zlib/{contrib,examples,old,doc}
+rm -r third_party/zlib/{win32,msdos,nintendods,watcom,qnx,amiga}
+
+find -type d -name testdata | xargs rm -r
+find -type d -name mac | xargs rm -r
+find -type d -name win | xargs rm -r
+find -type d -name test | xargs rm -r
+find third_party -type d -name android | xargs rm -r
+
+find -type f -name '*_test.cc' | xargs rm
+find -type f -name '*_unittest.cc' | xargs rm
+
+# not using gn nor ninja
+find -name BUILD.gn | xargs rm
+
+# cleanup empty dirs
+find -type d '!' -name '.' -print0 | sort -zr | xargs -0 rmdir --ignore-fail-on-non-empty
 
-# build/linux and third_party/chromium/src/build/linux are same dirs, the latter is not usedc
+# build/linux and third_party/chromium/src/build/linux are same dirs,
+# the later is not used by build system, but used by tarball packaging
 #rm -r third_party/chromium/src/build/linux
 #third_party/chromium/src/build/linux
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list