From 173b19110509b3795d8541e493f74c10827743fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Jul 2020 07:47:31 +0200 Subject: improve readability in do scripts --- c/do | 5 ++++- java/do | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/c/do b/c/do index 661ebd2..6b8bc8a 100755 --- a/c/do +++ b/c/do @@ -1,6 +1,9 @@ #! /bin/sh +BROWN="\033[0;33m" +RESET="\033[0m" for c in *.c do - echo "############" && clang -pedantic -Wall -ldl $c -o ./bin && ./bin + echo -e "###> $BROWN${c}$RESET <###" && clang -pedantic -Wall -ldl $c -o ./bin && ./bin + echo done rm ./bin diff --git a/java/do b/java/do index 50ca674..cf17a56 100755 --- a/java/do +++ b/java/do @@ -1,8 +1,12 @@ #! /bin/sh +BROWN="\033[0;33m" +RESET="\033[0m" for java in *.java do - echo "############" && javac $java && java ${java%.java} + echo -e "###> $BROWN${java}$RESET <###" && javac $java && java ${java%.java} + echo done +echo -e "###> ${BROWN}MyMyBatis$RESET <###" pushd MyMyBatis > /dev/null rm -fr build && ant && rm -fr build popd -- cgit v1.1-2-g2b99