]> git.pld-linux.org Git - packages/chromium-browser.git/blobdiff - clean-source.sh
clean empty dirs only in tarball creation
[packages/chromium-browser.git] / clean-source.sh
index d34f7105e8100c60c8850fb8edd71c5848ecb374..6861e5b799c83b311a215b8feb8f3031cb8a5e71 100755 (executable)
@@ -34,7 +34,7 @@ remove_nonessential_dirs() {
        breakpad/src/common/android \
        breakpad/src/common/mac \
        breakpad/src/tools/mac \
-       build/android \
+       build/android_ \
        build/mac \
        build/win \
        chrome/android \
@@ -78,7 +78,7 @@ remove_nonessential_dirs() {
        chrome/tools/build/mac \
        chrome/tools/build/win \
        chrome_frame \
-       chromeos \
+       chromeos_ \
        cloud_print/service/win \
        cloud_print/virtual_driver/win \
        content/app/android \
@@ -140,45 +140,59 @@ remove_nonessential_dirs() {
        third_party/WebKit/Source/Platform/chromium/public/mac \
        third_party/WebKit/Source/Platform/chromium/public/win \
        third_party/WebKit/Source/WTF/wtf/mac \
+       third_party/WebKit/Source/WTF/wtf/qt \
        third_party/WebKit/Source/WTF/wtf/threads/win \
        third_party/WebKit/Source/WTF/wtf/win \
        third_party/WebKit/Source/WebCore/WebCore.gyp/mac \
        third_party/WebKit/Source/WebCore/accessibility/mac \
+       third_party/WebKit/Source/WebCore/accessibility/qt \
        third_party/WebKit/Source/WebCore/accessibility/win \
+       third_party/WebKit/Source/WebCore/bridge/qt \
        third_party/WebKit/Source/WebCore/editing/android \
        third_party/WebKit/Source/WebCore/editing/mac \
+       third_party/WebKit/Source/WebCore/editing/qt \
        third_party/WebKit/Source/WebCore/history/android \
        third_party/WebKit/Source/WebCore/history/mac \
+       third_party/WebKit/Source/WebCore/history/qt \
        third_party/WebKit/Source/WebCore/loader/mac \
        third_party/WebKit/Source/WebCore/loader/win \
        third_party/WebKit/Source/WebCore/page/android \
        third_party/WebKit/Source/WebCore/page/mac \
+       third_party/WebKit/Source/WebCore/page/qt \
        third_party/WebKit/Source/WebCore/page/scrolling/mac \
        third_party/WebKit/Source/WebCore/page/win \
        third_party/WebKit/Source/WebCore/platform/android \
        third_party/WebKit/Source/WebCore/platform/audio/mac \
+       third_party/WebKit/Source/WebCore/platform/audio/qt \
        third_party/WebKit/Source/WebCore/platform/cf/win \
        third_party/WebKit/Source/WebCore/platform/cocoa \
        third_party/WebKit/Source/WebCore/platform/graphics/ca/mac \
        third_party/WebKit/Source/WebCore/platform/graphics/ca/win \
        third_party/WebKit/Source/WebCore/platform/graphics/cocoa \
        third_party/WebKit/Source/WebCore/platform/graphics/gpu/mac \
+       third_party/WebKit/Source/WebCore/platform/graphics/gpu/qt \
        third_party/WebKit/Source/WebCore/platform/graphics/mac \
+       third_party/WebKit/Source/WebCore/platform/graphics/qt \
        third_party/WebKit/Source/WebCore/platform/graphics/surfaces/mac \
+       third_party/WebKit/Source/WebCore/platform/graphics/surfaces/qt \
        third_party/WebKit/Source/WebCore/platform/graphics/surfaces/win \
        third_party/WebKit/Source/WebCore/platform/graphics/win \
        third_party/WebKit/Source/WebCore/platform/ios \
        third_party/WebKit/Source/WebCore/platform/mac \
        third_party/WebKit/Source/WebCore/platform/network/android \
        third_party/WebKit/Source/WebCore/platform/network/mac \
+       third_party/WebKit/Source/WebCore/platform/network/qt \
        third_party/WebKit/Source/WebCore/platform/network/win \
+       third_party/WebKit/Source/WebCore/platform/qt \
        third_party/WebKit/Source/WebCore/platform/text/android \
        third_party/WebKit/Source/WebCore/platform/text/mac \
+       third_party/WebKit/Source/WebCore/platform/text/qt \
        third_party/WebKit/Source/WebCore/platform/text/win \
        third_party/WebKit/Source/WebCore/platform/win \
        third_party/WebKit/Source/WebCore/platform/wx/wxcode/mac \
        third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \
        third_party/WebKit/Source/WebCore/plugins/mac \
+       third_party/WebKit/Source/WebCore/plugins/qt \
        third_party/WebKit/Source/WebCore/plugins/win \
        third_party/WebKit/Source/WebKit/chromium/public/android \
        third_party/WebKit/Source/WebKit/chromium/public/mac_ \
@@ -191,6 +205,7 @@ remove_nonessential_dirs() {
        third_party/WebKit/Source/WebKit/chromium/src/win \
        third_party/WebKit/Source/WebKit/gtk/docs \
        third_party/WebKit/Source/WebKit/mac \
+       third_party/WebKit/Source/WebKit/qt \
        third_party/WebKit/Source/WebKit/qt/docs \
        third_party/WebKit/Source/WebKit/qt/examples \
        third_party/WebKit/Source/WebKit/win \
@@ -238,6 +253,7 @@ remove_nonessential_dirs() {
        third_party/WebKit/Source/WebKit2/mac \
        third_party/WebKit/Source/WebKit2/win \
        third_party/WebKit/Tools/DumpRenderTree/mac \
+       third_party/WebKit/Tools/DumpRenderTree/qt \
        third_party/WebKit/Tools/DumpRenderTree/win \
        third_party/angle/samples/gles2_book \
        third_party/boost \
@@ -276,7 +292,6 @@ remove_nonessential_dirs() {
        third_party/libxml/mac \
        third_party/lighttpd \
        third_party/mesa/MesaLib/docs \
-       third_party/mesa/MesaLib/docs \
        third_party/mesa/MesaLib/src/gallium/docs \
        third_party/mozc/chrome/chromeos_ \
        third_party/nspr \
@@ -365,15 +380,19 @@ almost_strip_dirs() {
                '!' -iname '*.gyp*' \
                '!' -path 'tools/build/*' \
                '!' -path 'tools/clang/scripts/plugin_flags.sh' \
+               '!' -path 'tools/generate_library_loader/*' \
+               '!' -path 'tools/generate_shim_headers/generate_shim_headers.py' \
                '!' -path 'tools/generate_stubs/*' \
                '!' -path 'tools/grit/*' \
                '!' -path 'tools/gritsettings/*' \
                '!' -path 'tools/gyp/*' \
                '!' -path 'tools/json_comment_eater.py' \
                '!' -path 'tools/json_schema_compiler/*' \
+               '!' -path 'tools/json_to_struct/*' \
                '!' -path 'tools/protoc_wrapper/*' \
                '!' -path 'tools/uuidgen.py' \
                '!' -path 'tools/zip2msi.py' \
+               '!' -path 'tools/usb_ids/*' \
                -print -delete
 }
 
@@ -428,6 +447,7 @@ clean_third_party() {
                \! -path 'third_party/v8/*' \
                \! -path 'third_party/webrtc/*' \
                \! -path 'third_party/widevine/*' \
+               \! -path 'third_party/usb_ids/*' \
                -print -delete
 
        rm -vf third_party/expat/files/lib/expat.h
@@ -708,6 +728,7 @@ remove_tests() {
                '!' -path './chrome/browser/diagnostics/diagnostics_test.*' \
                '!' -path './chrome/test/perf/perf_test.*' \
                '!' -path './chrome/test/perf/browser_perf_test.*' \
+               '!' -path './remoting/base/resources_unittest.*' \
        -print -delete
 }
 
@@ -722,6 +743,7 @@ strip_system_dirs \
        third_party/flac \
        third_party/icu \
        third_party/jsoncpp \
+       third_party/libXNVCtrl \
        third_party/libevent \
        third_party/libexif \
        third_party/libjpeg \
@@ -756,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
This page took 0.044908 seconds and 4 git commands to generate.