Index: build/android/gyp/delete_files.py |
diff --git a/build/android/gyp/delete_files.py b/build/android/gyp/delete_files.py |
index 802824d3a8c3961a648981bf89b42ddf289c4d8d..2fd945c0c4459a2d104035c3ed56380289dbcad0 100755 |
--- a/build/android/gyp/delete_files.py |
+++ b/build/android/gyp/delete_files.py |
@@ -11,6 +11,8 @@ import optparse |
import os |
import sys |
+from util import build_utils |
+ |
def main(): |
parser = optparse.OptionParser() |
parser.add_option( |
@@ -19,6 +21,9 @@ def main(): |
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() |
@@ -40,6 +45,9 @@ def main(): |
if os.path.isfile(target_file): |
os.remove(target_file) |
+ if options.stamp: |
+ build_utils.Touch(options.stamp) |
+ |
if __name__ == '__main__': |
sys.exit(main()) |