From adeb285b41829042ad930289c4eff598f5e70775 Mon Sep 17 00:00:00 2001 From: fanasina Date: Wed, 18 Oct 2023 01:00:40 +0200 Subject: [PATCH] add verbose in compile and kreate lib script --- kreate_library_ytest.sh | 6 ++++++ test/compile.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kreate_library_ytest.sh b/kreate_library_ytest.sh index bbe50e9..fddc442 100644 --- a/kreate_library_ytest.sh +++ b/kreate_library_ytest.sh @@ -5,6 +5,12 @@ do cp -r "$yfile/include" include_ytest/ done +if [ "$#" -le 0 ] ; then + echo "Usage: $0" >&2 + echo "we can add more option for example '-D DEBUG=1' to have debug print, or '-g' to gbd" >&2 + echo "for example: $0 \"-D DEBUG=1 -g\"" +fi + gcc -c -Wall -Werror -fpic yftest/src/ftest/ftest.c yfmock/src/fmock/fmock.c \ ytools_t/src/tools_t/tools_t.c ybar_progress/src/bar_progress/bar_progress.c \ diff --git a/test/compile.sh b/test/compile.sh index c7a9339..3c09629 100644 --- a/test/compile.sh +++ b/test/compile.sh @@ -7,8 +7,8 @@ if [ "$#" -le 0 ] ; then fi if [ "$#" -le 1 ] ; then echo "Usage: $0 $1" >&2 - echo " we can add more option for example '-D DEBUG=1' to have debug print, '-D HK' to have gtest like prompt, od '-g' to gbd" >&2 - echo "for example: $0 $1 \"-D DEBUG=1 -D HK -g\"" + echo "we can add more option for example '-D DEBUG=1' to have debug print, or '-g' to gbd" >&2 + echo "for example: $0 $1 \"-D DEBUG=1 -g\"" fi