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

Unified Diff: build/android/content_shell_ant_helper.sh

Issue 10669030: Pass the build type to ant build (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Refine the patch according to jochen's comments Created 8 years, 5 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 | content/content_shell.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/content_shell_ant_helper.sh
diff --git a/build/android/content_shell_ant_helper.sh b/build/android/content_shell_ant_helper.sh
new file mode 100755
index 0000000000000000000000000000000000000000..456303cf3dfe6076b5fbbf8f35ce4dd0a53f46ea
--- /dev/null
+++ b/build/android/content_shell_ant_helper.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright (c) 2012 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.
+
+set -eu
+
+# A helper script to help convert the values of the fifth parameter for
+# ant building: 'Debug' -> 'debug'; 'Release' -> 'release'.
+# It's used by content/content_shell.gypi
Mark Mentovai 2012/07/10 12:21:37 Then why does it live here in some far-off directo
John Grabowski 2012/07/10 14:16:05 Because I suggested he move it? There are no othe
+
+buildtype="$(tr '[A-Z]' '[a-z]' <<< "${6}")"
+
+# TODO(yongsheng): enable build type by adding "${buildtype}" into the
+# end of parameter list once the workflow is ready to support release
+# mode.
+exec "${1}" "${2}" "${3}" "${4}" "${5}"
« no previous file with comments | « no previous file | content/content_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698