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

Unified Diff: tools/only_in_release_mode.py

Issue 350483003: Build Tools Cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more fixes as reviewed by ricow Created 6 years, 6 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 | « tools/make_version.py ('k') | tools/publish_pkg.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/only_in_release_mode.py
diff --git a/tools/only_in_release_mode.py b/tools/only_in_release_mode.py
index 089d30c039c91245c1f18d42f832bc18610f14c1..c2cc97926a1acab87b00acc5090edd682f853941 100644
--- a/tools/only_in_release_mode.py
+++ b/tools/only_in_release_mode.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python
#
-# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""
Wrapper around a build action that should only be executed in release mode.
-The mode is defined via an environment varible DART_BUILD_MODE.
+The mode is defined via an environment variable DART_BUILD_MODE.
The arguments to the script are:
@@ -29,7 +29,7 @@ def Main():
outputs = sys.argv[1:separator_index]
arguments = sys.argv[separator_index + 1:]
arguments[0] = os.path.normpath(arguments[0])
- mode = os.getenv('DART_BUILD_MODE', default='release')
+ mode = os.getenv('DART_BUILD_MODE', 'release')
if mode != 'release':
print >> sys.stderr, 'Not running %s in mode=%s' % (arguments, mode)
for output in outputs:
« no previous file with comments | « tools/make_version.py ('k') | tools/publish_pkg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698