Implement chbuild command for setting target build type
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Rafal Kupiec 2020-12-21 09:14:07 +01:00
parent 80bbcab65d
commit 9e200f0139
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 19 additions and 0 deletions

View File

@ -33,6 +33,24 @@ charch()
} }
export -f charch export -f charch
# Sets the build type
chbuild()
{
if [ "x${1}" == "x" ]; then
echo "Syntax: chbuild [DEBUG|RELEASE]"
return
fi
case ${1} in
[Rr][Ee][Ll][Ee][Aa][Ss][Ee])
export BUILD_TYPE="RELEASE"
;;
*)
export BUILD_TYPE="DEBUG"
esac
echo "Target build type: ${BUILD_TYPE}"
}
export -f chbuild
# Displays version banner # Displays version banner
version() version()
{ {
@ -49,6 +67,7 @@ version()
echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)" echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)"
echo echo
charch ${TARGET} charch ${TARGET}
chbuild DEBUG
echo echo
echo echo
} }