From 5d980cf64b0cb276592fea7e4d6c887f00098ecb Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 26 Oct 2024 21:22:59 +0100 Subject: [PATCH] Make scripts directly executable --- scripts/build.sh | 2 ++ scripts/entr.sh | 3 ++- scripts/format.sh | 1 + scripts/test.sh | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/build.sh mode change 100644 => 100755 scripts/entr.sh mode change 100644 => 100755 scripts/format.sh mode change 100644 => 100755 scripts/test.sh diff --git a/scripts/build.sh b/scripts/build.sh old mode 100644 new mode 100755 index 803dcdd..773f7ab --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,3 +1,5 @@ +#!/bin/sh + cd "$(git rev-parse --show-toplevel)" CFLAGS="$CFLAGS -std=c11 -pedantic -Wall -Wextra" diff --git a/scripts/entr.sh b/scripts/entr.sh old mode 100644 new mode 100755 index 69d58ca..7161fe9 --- a/scripts/entr.sh +++ b/scripts/entr.sh @@ -1,3 +1,4 @@ +#!/bin/sh cd "$(git rev-parse --show-toplevel)" find . -not \( -path './.git' -prune \) -not \( -path './build' -prune \) \ - | entr -s 'clear && sh scripts/build.sh && sh scripts/test.sh' + | entr -s 'clear && scripts/build.sh && scripts/test.sh' diff --git a/scripts/format.sh b/scripts/format.sh old mode 100644 new mode 100755 index 9124d63..68074cd --- a/scripts/format.sh +++ b/scripts/format.sh @@ -1,3 +1,4 @@ +#!/bin/sh cd "$(git rev-parse --show-toplevel)" find . -not \( -path './.git' -prune \) \ -not \( -path './build' -prune \) \ diff --git a/scripts/test.sh b/scripts/test.sh old mode 100644 new mode 100755 index 014e2d0..4a1ac84 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,3 +1,5 @@ +#!/bin/sh + cd "$(git rev-parse --show-toplevel)" fails=0