Make scripts directly executable
This commit is contained in:
parent
8a06c7ceb6
commit
5d980cf64b
2
scripts/build.sh
Normal file → Executable file
2
scripts/build.sh
Normal file → Executable 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
3
scripts/entr.sh
Normal file → Executable 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
1
scripts/format.sh
Normal file → Executable 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
2
scripts/test.sh
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
fails=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user