Make scripts directly executable

This commit is contained in:
Camden Dixie O'Brien 2024-10-26 21:22:59 +01:00
parent 8a06c7ceb6
commit 5d980cf64b
4 changed files with 7 additions and 1 deletions

2
scripts/build.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/bin/sh
cd "$(git rev-parse --show-toplevel)"
CFLAGS="$CFLAGS -std=c11 -pedantic -Wall -Wextra"

3
scripts/entr.sh Normal file → Executable file
View File

@ -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'

1
scripts/format.sh Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/sh
cd "$(git rev-parse --show-toplevel)"
find . -not \( -path './.git' -prune \) \
-not \( -path './build' -prune \) \

2
scripts/test.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/bin/sh
cd "$(git rev-parse --show-toplevel)"
fails=0