stopped writing {GRAY} before each message in myprint()
This commit is contained in:
parent
5cc2e1c2ad
commit
e655f05da6
@ -45,7 +45,7 @@ include "@cbuild/include/functions.sh"
|
|||||||
include "@cbuild/include/config.sh"
|
include "@cbuild/include/config.sh"
|
||||||
|
|
||||||
function print_help {
|
function print_help {
|
||||||
myprint "cbuild v$INSTALLED_CBUILD_VERSION"
|
myprint "${GRAY}cbuild v$INSTALLED_CBUILD_VERSION"
|
||||||
myprint "C/C++ project build system written in bash."
|
myprint "C/C++ project build system written in bash."
|
||||||
myprint "Usage: cbuild [OPTIONS] [TASKS]"
|
myprint "Usage: cbuild [OPTIONS] [TASKS]"
|
||||||
myprint "Options:"
|
myprint "Options:"
|
||||||
@ -74,7 +74,7 @@ do
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
'-v' | '--version')
|
'-v' | '--version')
|
||||||
myprint "cbuild v$INSTALLED_CBUILD_VERSION"
|
myprint "${GRAY}cbuild v$INSTALLED_CBUILD_VERSION"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
'-c' | '--config')
|
'-c' | '--config')
|
||||||
|
|||||||
@ -4,7 +4,6 @@ include "@cbuild/include/myprint.sh"
|
|||||||
|
|
||||||
function detect_os {
|
function detect_os {
|
||||||
local uname_result="$(uname -o)"
|
local uname_result="$(uname -o)"
|
||||||
# myprint "uname result: '$uname_result'"
|
|
||||||
case "$uname_result" in
|
case "$uname_result" in
|
||||||
Msys | Cygwin | MS/Windows)
|
Msys | Cygwin | MS/Windows)
|
||||||
safeprint WINDOWS
|
safeprint WINDOWS
|
||||||
|
|||||||
@ -233,7 +233,9 @@ function pack_static_lib {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local command="ar rcs $OUTDIR/$outfile $objects"
|
local command="ar rcs $OUTDIR/$outfile $objects"
|
||||||
myprint "$command"
|
print_hline "${GRAY}" "─"
|
||||||
|
myprint "${GRAY}$command"
|
||||||
|
print_hline "${GRAY}" "─"
|
||||||
if $command
|
if $command
|
||||||
then
|
then
|
||||||
myprint "${GREEN}file $CYAN$outfile ${GREEN}created"
|
myprint "${GREEN}file $CYAN$outfile ${GREEN}created"
|
||||||
@ -268,7 +270,9 @@ function link {
|
|||||||
done
|
done
|
||||||
|
|
||||||
local command="$CMP_CPP $objects $static_libs $args $dynamic_libs_args -o $OUTDIR/$outfile"
|
local command="$CMP_CPP $objects $static_libs $args $dynamic_libs_args -o $OUTDIR/$outfile"
|
||||||
myprint "$command"
|
print_hline "${GRAY}" "─"
|
||||||
|
myprint "${GRAY}$command"
|
||||||
|
print_hline "${GRAY}" "─"
|
||||||
if $command
|
if $command
|
||||||
then
|
then
|
||||||
myprint "${GREEN}file $CYAN$outfile ${GREEN}created"
|
myprint "${GREEN}file $CYAN$outfile ${GREEN}created"
|
||||||
|
|||||||
@ -18,7 +18,7 @@ function safeprint {
|
|||||||
|
|
||||||
# prints text with special characters and resets color
|
# prints text with special characters and resets color
|
||||||
function myprint {
|
function myprint {
|
||||||
printf "${GRAY}$@${GRAY}\n"
|
printf "$@${GRAY}\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
function myprint_quiet {
|
function myprint_quiet {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user