Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/bash --posix |
|
mmendez
2012/01/10 14:27:01
I'm not a scripting guru, but why does using bash
ricow1
2012/01/10 14:34:07
Here is the deal: On our normal linux boxes /bin/s
| |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 SCRIPT_DIR=$(dirname $0) | 6 SCRIPT_DIR=$(dirname $0) |
| 7 DARTC_HOME=$(dirname $SCRIPT_DIR) | 7 DARTC_HOME=$(dirname $SCRIPT_DIR) |
| 8 DARTC_LIBS=$DARTC_HOME/lib | 8 DARTC_LIBS=$DARTC_HOME/lib |
| 9 | 9 |
| 10 if [ -x /usr/libexec/java_home ]; then | 10 if [ -x /usr/libexec/java_home ]; then |
| 11 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') | 11 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') |
| 12 fi | 12 fi |
| 13 | 13 |
| 14 EXTRA_JVMARGS="-Xss2M " | 14 EXTRA_JVMARGS="-Xss2M " |
| 15 OS=`uname | tr [A-Z] [a-z]` | 15 OS=`uname | tr [A-Z] [a-z]` |
| 16 if [ "$OS" == "darwin" ] ; then | 16 if [ "$OS" == "darwin" ] ; then |
| 17 # Bump up the heap on Mac VMs, some of which default to 128M or less. | 17 # Bump up the heap on Mac VMs, some of which default to 128M or less. |
| 18 # Users can specify DART_JVMARGS in the environment to override | 18 # Users can specify DART_JVMARGS in the environment to override |
| 19 # this setting. | 19 # this setting. |
| 20 EXTRA_JVMARGS+="-Xmx256M" | 20 EXTRA_JVMARGS+="-Xmx256M" |
| 21 fi | 21 fi |
| 22 | 22 |
| 23 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ | 23 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ |
| 24 com.google.dart.compiler.DartCompiler $@ | 24 com.google.dart.compiler.DartCompiler $@ |
| OLD | NEW |