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

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

Issue 305633009: [Android] add stamp option in delete_files.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | « no previous file | no next file » | 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
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())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698