From 3eea369072f810a4f52550dd58802588263190bd Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 3 Aug 2022 14:55:04 +0000 Subject: [PATCH] Shebangs!! --- sapphire.sh | 1 + tools/build.sh | 1 + tools/format.sh | 1 + tools/generate.sh | 1 + tools/generateASTNode.sh | 1 + tools/install.sh | 3 ++- 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sapphire.sh b/sapphire.sh index 368230b..12dbf96 100755 --- a/sapphire.sh +++ b/sapphire.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env sh cd $(dirname $0) usage() diff --git a/tools/build.sh b/tools/build.sh index 51fef35..e1eb942 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -1 +1,2 @@ +#!/usr/bin/env sh cmake --build build --config "${1:-Debug}" \ No newline at end of file diff --git a/tools/format.sh b/tools/format.sh index 1b5ded9..5efca64 100755 --- a/tools/format.sh +++ b/tools/format.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env sh if [ ! -d build ] then mkdir build diff --git a/tools/generate.sh b/tools/generate.sh index 96ab6d7..892de70 100755 --- a/tools/generate.sh +++ b/tools/generate.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env sh if [ ! -d build ] then mkdir build diff --git a/tools/generateASTNode.sh b/tools/generateASTNode.sh index a8866ce..5b5230f 100755 --- a/tools/generateASTNode.sh +++ b/tools/generateASTNode.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env sh cd "$(dirname $0)"/../src/AST if [ "$1" == "" ]; then diff --git a/tools/install.sh b/tools/install.sh index b147d08..6f92e84 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -1,6 +1,7 @@ +#!/usr/bin/env sh cd build -if [ "$1" == "" ] +if [ -z "$1" ] then cmake --install . else