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

15 files changed

+15
-15
lines changed

Diff for: test/1_stdlib/timeout.sh

+1-1
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

Diff for: utils/benchmark/build.sh

+1-1
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"

Diff for: utils/build-script

+1-1
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

Diff for: utils/build-script-impl

+1-1
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

Diff for: utils/darwin-installer-scripts/postinstall

+1-1
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

Diff for: utils/omit-needless-words.py

+1-1
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

Diff for: utils/pygments/swift.py

+1-1
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

Diff for: utils/recursive-lipo

+1-1
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

Diff for: utils/resolve-crashes.py

+1-1
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

Diff for: utils/sil-opt-verify-all-modules.py

+1-1
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

Diff for: utils/swift-stdlib-tool-substitute

+1-1
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
#

Diff for: utils/toolchain-codesign

+1-1
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

Diff for: utils/toolchain-installer

+1-1
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

Diff for: utils/update-checkout

+1-1
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

Diff for: validation-test/SIL/Inputs/gen_parse_stdlib_tests.sh

+1-1
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)