From 19aea7a502e90851f95380dfaaf28887e504dd43 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 29 Apr 2015 14:54:17 +0300 Subject: [PATCH] Fixing bash scripts: moving '#!/bin/bash' to top. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com --- tools/cppcheck.sh | 4 ++-- tools/generator.sh | 4 ++-- tools/git-scripts/log.sh | 4 ++-- tools/git-scripts/pull.sh | 4 ++-- tools/git-scripts/push.sh | 4 ++-- tools/perf-compare.sh | 4 ++-- tools/perf.sh | 4 ++-- tools/precommit.sh | 4 ++-- tools/rss-measure.sh | 4 ++-- tools/runners/run-benchmarks.sh | 4 ++-- tools/runners/run-precommit-check-for-target.sh | 4 ++-- tools/runners/run-stability-test.sh | 4 ++-- tools/runners/run-test-pass.sh | 4 ++-- tools/runners/run-test-suite-test262.sh | 4 ++-- tools/runners/run-test-xfail.sh | 4 ++-- tools/runners/run-unittests.sh | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/tools/cppcheck.sh b/tools/cppcheck.sh index cf92a56ea..9e36dc0df 100755 --- a/tools/cppcheck.sh +++ b/tools/cppcheck.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - BASE=$(dirname $0)/../third-party/tools/cppcheck if [ ! -x $BASE/$(uname -m)/cppcheck ] diff --git a/tools/generator.sh b/tools/generator.sh index 81695b3d8..f1a9df4d4 100755 --- a/tools/generator.sh +++ b/tools/generator.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - echo "#define JERRY_MCU_SCRIPT \\" > $2 cat $1 | while read line do diff --git a/tools/git-scripts/log.sh b/tools/git-scripts/log.sh index 8a69c2132..d7c59555b 100755 --- a/tools/git-scripts/log.sh +++ b/tools/git-scripts/log.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - git log --graph --branches --decorate \ --show-notes=perf --show-notes=mem --show-notes=test_build_env \ --show-notes=arm-linux-perf \ diff --git a/tools/git-scripts/pull.sh b/tools/git-scripts/pull.sh index c7d04b56a..828012a45 100755 --- a/tools/git-scripts/pull.sh +++ b/tools/git-scripts/pull.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - git pull --rebase status_code=$? diff --git a/tools/git-scripts/push.sh b/tools/git-scripts/push.sh index f1a38c4fc..328919724 100755 --- a/tools/git-scripts/push.sh +++ b/tools/git-scripts/push.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - GIT_STATUS_NOT_CLEAN_MSG="Git status of current directory is not clean" GIT_STATUS_CONSIDER_CLEAN_MSG="Consider removing all untracked files, locally commiting all changes and running $0 again" diff --git a/tools/perf-compare.sh b/tools/perf-compare.sh index 5f8963bcd..155a55235 100755 --- a/tools/perf-compare.sh +++ b/tools/perf-compare.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - commit_first=$1 shift diff --git a/tools/perf.sh b/tools/perf.sh index 918909abd..38c133245 100755 --- a/tools/perf.sh +++ b/tools/perf.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - ITERS=$1 ENGINE=$2 BENCHMARK=$3 diff --git a/tools/precommit.sh b/tools/precommit.sh index b409517f9..654a24ba0 100755 --- a/tools/precommit.sh +++ b/tools/precommit.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - MAKE="$1" shift diff --git a/tools/rss-measure.sh b/tools/rss-measure.sh index e4c5a123c..b590acdba 100755 --- a/tools/rss-measure.sh +++ b/tools/rss-measure.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - JERRY=$1 TEST=$2 RAW_OUTPUT=$3 diff --git a/tools/runners/run-benchmarks.sh b/tools/runners/run-benchmarks.sh index 46146be5a..a92d00520 100755 --- a/tools/runners/run-benchmarks.sh +++ b/tools/runners/run-benchmarks.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - ENGINE=$1 function run () diff --git a/tools/runners/run-precommit-check-for-target.sh b/tools/runners/run-precommit-check-for-target.sh index 6fa121901..bd6cf76dc 100755 --- a/tools/runners/run-precommit-check-for-target.sh +++ b/tools/runners/run-precommit-check-for-target.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - ENGINE_PATH="$1" OUTPUT_PATH="$2" TESTS_PATH="$3" diff --git a/tools/runners/run-stability-test.sh b/tools/runners/run-stability-test.sh index a3052d344..716c41e0e 100755 --- a/tools/runners/run-stability-test.sh +++ b/tools/runners/run-stability-test.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - NUM_COMMITS=$1 BENCH=./tests/benchmarks/jerry/loop_arithmetics_1kk.js TARGET=release.linux diff --git a/tools/runners/run-test-pass.sh b/tools/runners/run-test-pass.sh index 015004c2f..0b1451376 100755 --- a/tools/runners/run-test-pass.sh +++ b/tools/runners/run-test-pass.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - TIMEOUT=${TIMEOUT:=5} START_DIR=`pwd` diff --git a/tools/runners/run-test-suite-test262.sh b/tools/runners/run-test-suite-test262.sh index 56559372c..dfbba39a7 100755 --- a/tools/runners/run-test-suite-test262.sh +++ b/tools/runners/run-test-suite-test262.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - TARGET=$1 shift diff --git a/tools/runners/run-test-xfail.sh b/tools/runners/run-test-xfail.sh index 21a3b02ba..c9adcbcb4 100755 --- a/tools/runners/run-test-xfail.sh +++ b/tools/runners/run-test-xfail.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - TIMEOUT=${TIMEOUT:=5} START_DIR=`pwd` diff --git a/tools/runners/run-unittests.sh b/tools/runners/run-unittests.sh index 7217212e7..51d8e743e 100755 --- a/tools/runners/run-unittests.sh +++ b/tools/runners/run-unittests.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - DIR="$1" shift