From 60b0eeca730fef9c4af9eddb768f034f50fe5e56 Mon Sep 17 00:00:00 2001 From: Non <43197300+nonperforming@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:46:03 +1300 Subject: [PATCH] Add bash shebang to .sh scripts --- build.sh | 2 ++ build_web.sh | 2 ++ run_c_binding_test.sh | 2 ++ run_profile.sh | 2 ++ run_tests.sh | 2 ++ 5 files changed, 10 insertions(+) diff --git a/build.sh b/build.sh index 5c81603d..0d422387 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + python3 prebuild.py SRC=$(find src/ -name "*.cpp") FLAGS="-std=c++17 -O2 -stdlib=libc++ -Wfatal-errors -Iinclude" diff --git a/build_web.sh b/build_web.sh index 9ed30b58..cf8d96a6 100644 --- a/build_web.sh +++ b/build_web.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + python3 prebuild.py rm -rf web/lib diff --git a/run_c_binding_test.sh b/run_c_binding_test.sh index a587c366..5dca8c4a 100644 --- a/run_c_binding_test.sh +++ b/run_c_binding_test.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + cd c_bindings rm -rf build mkdir build diff --git a/run_profile.sh b/run_profile.sh index 33b1cdcb..993448ee 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + python3 prebuild.py SRC=$(find src/ -name "*.cpp") clang++ -pg -O1 -std=c++17 -stdlib=libc++ -Wfatal-errors -o main $SRC -Iinclude -ldl diff --git a/run_tests.sh b/run_tests.sh index 2b964aa8..9e33e0bf 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + python3 prebuild.py SRC=$(find src/ -name "*.cpp") clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl