Skip to content

Commit 9da5899

Browse files
author
James McLaughlin
committed
Consistently use env(1) to resolve bash and python paths
1 parent 7e86cd9 commit 9da5899

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

test/1_stdlib/timeout.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# timeout.sh <seconds> <command...>
44

utils/benchmark/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [[ -n "$LLVM_DIR" ]]; then
44
BUILD_DIR="$LLVM_DIR/build"

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===--- build-script - The ultimate tool for building Swift ----------------===#
33
#
44
## This source file is part of the Swift.org open source project

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#===--- build-script-impl - Implementation details of build-script ---------===#
33
#
44
## This source file is part of the Swift.org open source project

utils/darwin-installer-scripts/postinstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#===--- postinstall - Creates symlink after installing xctoolchain ----------===#
33
#
44
## This source file is part of the Swift.org open source project

utils/omit-needless-words.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# This tool helps assess the impact of automatically applying
44
# heuristics that omit 'needless' words from APIs imported from Clang

utils/pygments/swift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import re
44

utils/recursive-lipo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse
44
import os.path

utils/resolve-crashes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# A small utility to take the output of a Swift validation test run
44
# where some compiler crashers have been fixed, and move them into the

utils/sil-opt-verify-all-modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===------------------------------------------------------------------------===#
33
#
44
# This source file is part of the Swift.org open source project

utils/swift-stdlib-tool-substitute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#===--- swift-stdlib-tool - stand-in for the real swift-stdlib-tool --------===#
44
#

utils/toolchain-codesign

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#===--- toolchain-codesign - Creates code signed xctoolchain ---------------===#
33
#
44
## This source file is part of the Swift.org open source project

utils/toolchain-installer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#===--- toolchain-installer - Creates installer pkg for OS X ---------------===#
33
#
44
## This source file is part of the Swift.org open source project

utils/update-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===--- update-checkout - Utility to update your local checkouts -----------===#
33
#
44
# This source file is part of the Swift.org open source project

validation-test/SIL/Inputs/gen_parse_stdlib_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
process_count=17
44
process_id_max=$(($process_count - 1))

0 commit comments

Comments
 (0)