logo

utils

~/.local/bin tools and git-hooks
commit: 522f92292e2a3ee9bfa00d31bef128b29354b828
parent: c83542cb6a171f1061570cb87f6253da01d8f02e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  1 Mar 2018 18:35:42 +0100

make.sh: echo before compiling, exit on error

Diffstat:

Mmake.sh2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make.sh b/make.sh @@ -15,8 +15,8 @@ install uses PREFIX, LIBDIR, BINDIR, DOCDIR, environment variables" all() { for i in $(cd src ; echo *.c); do - "${CC}" ${CFLAGS} -o "bin/${i%.c}" "src/${i}" echo "${PS4}${CC}" ${CFLAGS} -o "bin/${i%.c}" "src/${i}" + "${CC}" ${CFLAGS} -o "bin/${i%.c}" "src/${i}" || exit done }