summaryrefslogtreecommitdiff
path: root/tools/ci/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts')
-rwxr-xr-xtools/ci/scripts/azure/mxeremovefiles.sh2
-rwxr-xr-xtools/ci/scripts/azure/mxetest.sh2
-rwxr-xr-xtools/ci/scripts/checkldd.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc5.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc6.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc6_sanitize_tests.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc6_tests.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc7.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc7_sanitize_tests.sh2
-rwxr-xr-xtools/ci/scripts/circleci/gcc7_tests.sh2
-rwxr-xr-xtools/ci/scripts/clang_tidy.sh2
-rwxr-xr-xtools/ci/scripts/clonesrc.sh2
-rwxr-xr-xtools/ci/scripts/copylib.sh2
-rwxr-xr-xtools/ci/scripts/copymxedlls.sh2
-rwxr-xr-xtools/ci/scripts/deheader.sh2
-rwxr-xr-xtools/ci/scripts/deheaderS.sh2
-rwxr-xr-xtools/ci/scripts/dockerretry.sh2
-rwxr-xr-xtools/ci/scripts/downloadlib.sh2
-rwxr-xr-xtools/ci/scripts/exit.sh2
-rwxr-xr-xtools/ci/scripts/icccheckfile.sh2
-rwxr-xr-xtools/ci/scripts/init.sh2
-rwxr-xr-xtools/ci/scripts/patchsdl1.sh2
-rwxr-xr-xtools/ci/scripts/retry.sh2
-rwxr-xr-xtools/ci/scripts/rundyecmd.sh2
-rwxr-xr-xtools/ci/scripts/runtest.sh2
-rwxr-xr-xtools/ci/scripts/runtests.sh2
-rwxr-xr-xtools/ci/scripts/separateunittests.sh2
-rwxr-xr-xtools/ci/scripts/test.sh2
-rwxr-xr-xtools/ci/scripts/triggers.sh2
-rwxr-xr-xtools/ci/scripts/updaterepos.sh2
-rwxr-xr-xtools/ci/scripts/winvars.sh2
31 files changed, 31 insertions, 31 deletions
diff --git a/tools/ci/scripts/azure/mxeremovefiles.sh b/tools/ci/scripts/azure/mxeremovefiles.sh
index 455829137..f279daee3 100755
--- a/tools/ci/scripts/azure/mxeremovefiles.sh
+++ b/tools/ci/scripts/azure/mxeremovefiles.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
rm -rf .git
rm -rf src
diff --git a/tools/ci/scripts/azure/mxetest.sh b/tools/ci/scripts/azure/mxetest.sh
index d92085173..30cf8342e 100755
--- a/tools/ci/scripts/azure/mxetest.sh
+++ b/tools/ci/scripts/azure/mxetest.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo docker login --help
docker login --help
diff --git a/tools/ci/scripts/checkldd.sh b/tools/ci/scripts/checkldd.sh
index e728fd85d..a8ff198e2 100755
--- a/tools/ci/scripts/checkldd.sh
+++ b/tools/ci/scripts/checkldd.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "Custom libs linked"
grep "spm" "$(ldd $1)"
diff --git a/tools/ci/scripts/circleci/gcc5.sh b/tools/ci/scripts/circleci/gcc5.sh
index 42a7caaa4..2d5c3ed9b 100755
--- a/tools/ci/scripts/circleci/gcc5.sh
+++ b/tools/ci/scripts/circleci/gcc5.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc6.sh b/tools/ci/scripts/circleci/gcc6.sh
index 99e38cb0e..904888b09 100755
--- a/tools/ci/scripts/circleci/gcc6.sh
+++ b/tools/ci/scripts/circleci/gcc6.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc6_sanitize_tests.sh b/tools/ci/scripts/circleci/gcc6_sanitize_tests.sh
index 59d38ea25..afaae9234 100755
--- a/tools/ci/scripts/circleci/gcc6_sanitize_tests.sh
+++ b/tools/ci/scripts/circleci/gcc6_sanitize_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc6_tests.sh b/tools/ci/scripts/circleci/gcc6_tests.sh
index dd7c2e79d..644f4b75f 100755
--- a/tools/ci/scripts/circleci/gcc6_tests.sh
+++ b/tools/ci/scripts/circleci/gcc6_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc7.sh b/tools/ci/scripts/circleci/gcc7.sh
index a56f8bb42..e90268db1 100755
--- a/tools/ci/scripts/circleci/gcc7.sh
+++ b/tools/ci/scripts/circleci/gcc7.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc7_sanitize_tests.sh b/tools/ci/scripts/circleci/gcc7_sanitize_tests.sh
index 4757fb0b1..1b3c9a8fa 100755
--- a/tools/ci/scripts/circleci/gcc7_sanitize_tests.sh
+++ b/tools/ci/scripts/circleci/gcc7_sanitize_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/circleci/gcc7_tests.sh b/tools/ci/scripts/circleci/gcc7_tests.sh
index 8679f366c..0acab9a7b 100755
--- a/tools/ci/scripts/circleci/gcc7_tests.sh
+++ b/tools/ci/scripts/circleci/gcc7_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo "CI nodes: ${CIRCLE_NODE_TOTAL}"
echo "Current node: ${CIRCLE_NODE_INDEX}"
diff --git a/tools/ci/scripts/clang_tidy.sh b/tools/ci/scripts/clang_tidy.sh
index 1f1266f9d..6ee8b519b 100755
--- a/tools/ci/scripts/clang_tidy.sh
+++ b/tools/ci/scripts/clang_tidy.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
dir=`pwd`
diff --git a/tools/ci/scripts/clonesrc.sh b/tools/ci/scripts/clonesrc.sh
index 6c033b677..efb0596d3 100755
--- a/tools/ci/scripts/clonesrc.sh
+++ b/tools/ci/scripts/clonesrc.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
rm -rf manaplus || true
./tools/ci/scripts/retry.sh "git clone --branch master --depth ${GIT_DEPTH} https://gitlab.com/manaplus/manaplus.git manaplus" || exit 1
diff --git a/tools/ci/scripts/copylib.sh b/tools/ci/scripts/copylib.sh
index b50ab4832..d01b89ebc 100755
--- a/tools/ci/scripts/copylib.sh
+++ b/tools/ci/scripts/copylib.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export libname="$1_$2"
diff --git a/tools/ci/scripts/copymxedlls.sh b/tools/ci/scripts/copymxedlls.sh
index 2ddf16a23..f10afdb36 100755
--- a/tools/ci/scripts/copymxedlls.sh
+++ b/tools/ci/scripts/copymxedlls.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source ./tools/ci/scripts/winvars.sh || exit 1
source ./tools/ci/flags/mingw6.sh || exit 1
diff --git a/tools/ci/scripts/deheader.sh b/tools/ci/scripts/deheader.sh
index 619acc1c0..03ea0ee18 100755
--- a/tools/ci/scripts/deheader.sh
+++ b/tools/ci/scripts/deheader.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export var=$1
export name=${var%.*}
diff --git a/tools/ci/scripts/deheaderS.sh b/tools/ci/scripts/deheaderS.sh
index 8b76214f2..6f72ddb50 100755
--- a/tools/ci/scripts/deheaderS.sh
+++ b/tools/ci/scripts/deheaderS.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export var=$1
export name=${var%.*}
diff --git a/tools/ci/scripts/dockerretry.sh b/tools/ci/scripts/dockerretry.sh
index 22e38e574..121878cbb 100755
--- a/tools/ci/scripts/dockerretry.sh
+++ b/tools/ci/scripts/dockerretry.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# skip if we not in docker
if [[ ${CI_RUNNER_TAGS} != *"docker"* ]]; then
diff --git a/tools/ci/scripts/downloadlib.sh b/tools/ci/scripts/downloadlib.sh
index c2f7c5521..e65e78429 100755
--- a/tools/ci/scripts/downloadlib.sh
+++ b/tools/ci/scripts/downloadlib.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export zipname="lib.zip"
export libname="$1_$2"
diff --git a/tools/ci/scripts/exit.sh b/tools/ci/scripts/exit.sh
index 64b758ff1..1f13618c1 100755
--- a/tools/ci/scripts/exit.sh
+++ b/tools/ci/scripts/exit.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/usr/bin/env bash
rm $ERRFILE
diff --git a/tools/ci/scripts/icccheckfile.sh b/tools/ci/scripts/icccheckfile.sh
index 8805d192a..1d490c6c0 100755
--- a/tools/ci/scripts/icccheckfile.sh
+++ b/tools/ci/scripts/icccheckfile.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
identify -verbose $1 | egrep -i "profile|iCCP" >/dev/null
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 1a0ae84e5..beb68c2f7 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export dir=$(pwd)
export ERRFILE=${dir}/logs/${LOGFILE}
diff --git a/tools/ci/scripts/patchsdl1.sh b/tools/ci/scripts/patchsdl1.sh
index b97e12bbd..cb4c9a9de 100755
--- a/tools/ci/scripts/patchsdl1.sh
+++ b/tools/ci/scripts/patchsdl1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Fix compilation warning
sed -i 's|#define GL_GLEXT_VERSION 29|#ifndef GL_GLEXT_VERSION\n#define GL_GLEXT_VERSION 29\n#endif|' /usr/include/SDL/SDL_opengl.h
diff --git a/tools/ci/scripts/retry.sh b/tools/ci/scripts/retry.sh
index aaa50e983..e75b23440 100755
--- a/tools/ci/scripts/retry.sh
+++ b/tools/ci/scripts/retry.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
n=0
diff --git a/tools/ci/scripts/rundyecmd.sh b/tools/ci/scripts/rundyecmd.sh
index 57a229768..fc399f822 100755
--- a/tools/ci/scripts/rundyecmd.sh
+++ b/tools/ci/scripts/rundyecmd.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function testdye {
rm test1.png || true
diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh
index 41fb1c7c4..11c336cf8 100755
--- a/tools/ci/scripts/runtest.sh
+++ b/tools/ci/scripts/runtest.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function check_is_run {
kill -0 ${PID}
diff --git a/tools/ci/scripts/runtests.sh b/tools/ci/scripts/runtests.sh
index 90d3de2fa..96e5b69f5 100755
--- a/tools/ci/scripts/runtests.sh
+++ b/tools/ci/scripts/runtests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if [[ ${CI_RUNNER_TAGS} != *"docker"* ]]; then
echo "Running from shell. Skipping run tests $*"
diff --git a/tools/ci/scripts/separateunittests.sh b/tools/ci/scripts/separateunittests.sh
index 6e69069e8..3e94272da 100755
--- a/tools/ci/scripts/separateunittests.sh
+++ b/tools/ci/scripts/separateunittests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export LIST=./logs/testslist.txt
diff --git a/tools/ci/scripts/test.sh b/tools/ci/scripts/test.sh
index 4d4426780..908b8c93c 100755
--- a/tools/ci/scripts/test.sh
+++ b/tools/ci/scripts/test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
echo 1: $1
echo 2: $2
diff --git a/tools/ci/scripts/triggers.sh b/tools/ci/scripts/triggers.sh
index 76ddd90f4..1608537e7 100755
--- a/tools/ci/scripts/triggers.sh
+++ b/tools/ci/scripts/triggers.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function run {
echo "running pipeline for $1"
diff --git a/tools/ci/scripts/updaterepos.sh b/tools/ci/scripts/updaterepos.sh
index 99173a8fa..f0698fc19 100755
--- a/tools/ci/scripts/updaterepos.sh
+++ b/tools/ci/scripts/updaterepos.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if [[ ${CI_RUNNER_TAGS} != *"docker"* ]]; then
echo "Running from shell. Skipping update repos"
diff --git a/tools/ci/scripts/winvars.sh b/tools/ci/scripts/winvars.sh
index 0b3281777..3491c2b76 100755
--- a/tools/ci/scripts/winvars.sh
+++ b/tools/ci/scripts/winvars.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export PATH=/mxe/usr/bin:/mxe/usr/x86_64-unknown-linux-gnu/bin:/mxe/usr/${CROSS}/bin:$PATH