From fcae74d1123282fa7d9469e707973a90a49836ab Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Tue, 3 Feb 2015 18:08:38 -0800 Subject: [PATCH] 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). --- src/pal/tests/palsuite/runpaltests.sh | 2 +- src/pal/tools/gen-buildsys-clang.sh | 2 +- src/pal/tools/setup-compiler-clang.sh | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pal/tests/palsuite/runpaltests.sh b/src/pal/tests/palsuite/runpaltests.sh index d35f262987ca..5a36de64cc31 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 92a92cd6d654..723fc1d0e090 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 0eaa0d09a335..4f85f5866d25 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++