summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2015-02-03 18:08:38 -0800
committerMatt Ellis <matell@microsoft.com>2015-02-03 18:08:38 -0800
commitfcae74d1123282fa7d9469e707973a90a49836ab (patch)
treed61149843c43df5f7009b450128383fe301d2449 /src
parent2a956c5fb7a73c364c0c264c4d2ec29493542528 (diff)
downloadcoreclr-fcae74d1123282fa7d9469e707973a90a49836ab.tar.gz
coreclr-fcae74d1123282fa7d9469e707973a90a49836ab.tar.bz2
coreclr-fcae74d1123282fa7d9469e707973a90a49836ab.zip
Move shebang to top of shell scripts
This line should be at the top of the file, not after comments. Otherwise the correct shell is not picked in some cases (like when you the scripts file via sudo).
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pal/tests/palsuite/runpaltests.sh2
-rwxr-xr-xsrc/pal/tools/gen-buildsys-clang.sh2
-rwxr-xr-xsrc/pal/tools/setup-compiler-clang.sh3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/runpaltests.sh b/src/pal/tests/palsuite/runpaltests.sh
index d35f262987..5a36de64cc 100755
--- a/src/pal/tests/palsuite/runpaltests.sh
+++ b/src/pal/tests/palsuite/runpaltests.sh
@@ -1,7 +1,7 @@
+#!/bin/bash
#
# This script executes PAL tests from the specified build location.
#
-#!/bin/bash
if [ $# -lt 1 -o $# -gt 3 ]
then
diff --git a/src/pal/tools/gen-buildsys-clang.sh b/src/pal/tools/gen-buildsys-clang.sh
index 92a92cd6d6..723fc1d0e0 100755
--- a/src/pal/tools/gen-buildsys-clang.sh
+++ b/src/pal/tools/gen-buildsys-clang.sh
@@ -1,7 +1,7 @@
+#!/bin/bash
#
# This file invokes cmake and generates the build system for gcc.
#
-#!/bin/bash
if [ $# -lt 1 -o $# -gt 2 ]
then
diff --git a/src/pal/tools/setup-compiler-clang.sh b/src/pal/tools/setup-compiler-clang.sh
index 0eaa0d09a3..4f85f5866d 100755
--- a/src/pal/tools/setup-compiler-clang.sh
+++ b/src/pal/tools/setup-compiler-clang.sh
@@ -1,8 +1,7 @@
+#!/bin/bash
#
# This file sets the environment to be used for building with clang.
#
-#!/bin/bash
-
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++