Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1041)

Unified Diff: build/android/gyp/delete_files.py

Issue 759833002: [Android] Remove the workaround code of a platform bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reviewer's comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/library_loader/library_loader_hooks.cc ('k') | build/util/version.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/delete_files.py
diff --git a/build/android/gyp/delete_files.py b/build/android/gyp/delete_files.py
deleted file mode 100755
index 2fd945c0c4459a2d104035c3ed56380289dbcad0..0000000000000000000000000000000000000000
--- a/build/android/gyp/delete_files.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Delete files in directories matching a pattern.
-"""
-
-import glob
-import optparse
-import os
-import sys
-
-from util import build_utils
-
-def main():
- parser = optparse.OptionParser()
- parser.add_option(
- '--pattern',
- help='Pattern for matching Files to delete.')
- parser.add_option(
- '--keep',
- help='Files to keep even if they matches the pattern.')
- parser.add_option(
- '--stamp',
- help='Path to touch on success')
-
- options, args = parser.parse_args()
-
- if not options.pattern or not args:
- print 'No --pattern or target directories given'
- return
-
- for target_dir in args:
- target_pattern = os.path.join(target_dir, options.pattern)
- matching_files = glob.glob(target_pattern)
-
- keep_pattern = os.path.join(target_dir, options.keep)
- files_to_keep = glob.glob(keep_pattern)
-
- for target_file in matching_files:
- if target_file in files_to_keep:
- continue
-
- if os.path.isfile(target_file):
- os.remove(target_file)
-
- if options.stamp:
- build_utils.Touch(options.stamp)
-
-if __name__ == '__main__':
- sys.exit(main())
-
« no previous file with comments | « base/android/library_loader/library_loader_hooks.cc ('k') | build/util/version.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698