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

Side by Side Diff: test/actions-multiple-outputs/src/touch.py

Issue 1066963002: Improve generated Makefile rules for rules with 2 outputs. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: [Trying to convince the bots to accept the patch Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import os
8 import sys
9
10 """Cross-platform touch."""
11
12 for fname in sys.argv[1:]:
13 if os.path.exists(fname):
14 os.utime(fname, None)
15 else:
16 open(fname, 'w').close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698