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

Side by Side Diff: ninja

Issue 197213008: Invoke the bash shell via /usr/bin/env so that these scripts run on operating systems without /bin/… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Use "/usr/bin/env bash" for these files too. 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 unified diff | Download patch
« no previous file with comments | « man/src/prep_demo_repo.sh ('k') | testing_support/gerrit-init.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/usr/bin/env bash
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 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 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 OS="$(uname -s)" 7 OS="$(uname -s)"
8 THIS_DIR="$(dirname "${0}")" 8 THIS_DIR="$(dirname "${0}")"
9 9
10 function print_help() { 10 function print_help() {
11 cat <<-EOF 11 cat <<-EOF
(...skipping 22 matching lines...) Expand all
34 exit 1;; 34 exit 1;;
35 esac 35 esac
36 ;; 36 ;;
37 Darwin) exec "${THIS_DIR}/ninja-mac" "$@";; 37 Darwin) exec "${THIS_DIR}/ninja-mac" "$@";;
38 CYGWIN*) exec cmd.exe /c $(cygpath -t windows $0).exe "$@";; 38 CYGWIN*) exec cmd.exe /c $(cygpath -t windows $0).exe "$@";;
39 MINGW32*) cmd.exe //c $0.exe "$@";; 39 MINGW32*) cmd.exe //c $0.exe "$@";;
40 *) echo "Unsupported OS ${OS}" 40 *) echo "Unsupported OS ${OS}"
41 print_help 41 print_help
42 exit 1;; 42 exit 1;;
43 esac 43 esac
OLDNEW
« no previous file with comments | « man/src/prep_demo_repo.sh ('k') | testing_support/gerrit-init.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698