diff --git a/tools/build-debug.sh b/tools/build-debug.sh index 6494307c..877def35 100644 --- a/tools/build-debug.sh +++ b/tools/build-debug.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/build-iso.sh b/tools/build-iso.sh index fb65e71a..c810c1e9 100755 --- a/tools/build-iso.sh +++ b/tools/build-iso.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/build-stable-iso.sh b/tools/build-stable-iso.sh index b78de0b8..270c97b1 100755 --- a/tools/build-stable-iso.sh +++ b/tools/build-stable-iso.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/build.sh b/tools/build.sh index 1cb27981..0d0e5d9e 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/clean.sh b/tools/clean.sh index c7e348ed..e005b12c 100755 --- a/tools/clean.sh +++ b/tools/clean.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/debug.sh b/tools/debug.sh index edce3513..ad05afad 100755 --- a/tools/debug.sh +++ b/tools/debug.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/env.sh b/tools/env.sh index 215f0b99..f433d295 100755 --- a/tools/env.sh +++ b/tools/env.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash export LUNA_ROOT=$(realpath $(dirname $0)/..) export LUNA_BASE=$LUNA_ROOT/base export PATH=$LUNA_ROOT/toolchain/x86-64-luna/bin:$LUNA_ROOT/toolchain/dist:$PATH diff --git a/tools/gdb.sh b/tools/gdb.sh index 680c6b27..f0363a98 100644 --- a/tools/gdb.sh +++ b/tools/gdb.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/generate-symbols.sh b/tools/generate-symbols.sh index 9572466d..36bd4369 100755 --- a/tools/generate-symbols.sh +++ b/tools/generate-symbols.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e diff --git a/tools/install-headers.sh b/tools/install-headers.sh index 26b7d736..cbacbd09 100755 --- a/tools/install-headers.sh +++ b/tools/install-headers.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/install.sh b/tools/install.sh index 104badcb..7b903dc2 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/rebuild-and-run.sh b/tools/rebuild-and-run.sh index 84c862af..678c3f60 100755 --- a/tools/rebuild-and-run.sh +++ b/tools/rebuild-and-run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/rebuild-iso.sh b/tools/rebuild-iso.sh index d2c30400..fb38d5b3 100755 --- a/tools/rebuild-iso.sh +++ b/tools/rebuild-iso.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/rebuild.sh b/tools/rebuild.sh index a1f45456..ee3649b0 100755 --- a/tools/rebuild.sh +++ b/tools/rebuild.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/run.sh b/tools/run.sh index 2025e470..e1904c95 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/setup-binutils.sh b/tools/setup-binutils.sh index 6955f0fb..bb61105d 100755 --- a/tools/setup-binutils.sh +++ b/tools/setup-binutils.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/setup-env.sh diff --git a/tools/setup-env.sh b/tools/setup-env.sh index d1f56088..1d3aa3d0 100755 --- a/tools/setup-env.sh +++ b/tools/setup-env.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash source $(dirname $0)/env.sh export LUNA_GCC_VERSION_REQUIRED=12.2.0 diff --git a/tools/setup-gcc.sh b/tools/setup-gcc.sh index e5e5b783..41b535f1 100755 --- a/tools/setup-gcc.sh +++ b/tools/setup-gcc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/setup-env.sh diff --git a/tools/setup-mkbootimg.sh b/tools/setup-mkbootimg.sh index 6e72e758..8d3cdf44 100755 --- a/tools/setup-mkbootimg.sh +++ b/tools/setup-mkbootimg.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/setup.sh b/tools/setup.sh index 13460a7a..c14ba50c 100755 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e if ! $(dirname $0)/test-binutils.sh diff --git a/tools/sync-libc.sh b/tools/sync-libc.sh index 858180a1..808bcb04 100755 --- a/tools/sync-libc.sh +++ b/tools/sync-libc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/env.sh diff --git a/tools/test-binutils.sh b/tools/test-binutils.sh index 84041a80..4ba6fb3d 100755 --- a/tools/test-binutils.sh +++ b/tools/test-binutils.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/setup-env.sh diff --git a/tools/test-gcc.sh b/tools/test-gcc.sh index e9ed7ac7..c5be191f 100755 --- a/tools/test-gcc.sh +++ b/tools/test-gcc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -e source $(dirname $0)/setup-env.sh