Fixed build script and added help message.

This commit is contained in:
Eric-Paul Ickhorn 2024-01-19 20:29:57 +01:00
parent e1e4878d55
commit 6192a8f819
Signed by: epickh
GPG Key ID: F5EBBE013924D95F
1 changed files with 12 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function get_include_path_configuration {
for LINE in $(cat $INCLUDE_CONFIG_PATH) for LINE in $(cat $INCLUDE_CONFIG_PATH)
do do
INCLUDE_STATEMENTS="$INCLUDE_STATEMENTS -I \"$REPOSITORY_FOLDER/$LINE\"" INCLUDE_STATEMENTS="$INCLUDE_STATEMENTS -I $REPOSITORY_FOLDER/$LINE"
done done
} }
@ -127,7 +127,17 @@ case $1 in
"b" | "build-dependencies") "b" | "build-dependencies")
build_dependencies build_dependencies
;; ;;
"h" | "help")
echo "Known Actions:"
echo "[ d | dbg | debug ]: Build in the debug profile; build with debug symbols."
echo "[ r | release ]: Build for a release, with speed optimizations."
echo "[ c | clone-dependencies]: Clone the dependencies using Git (network required)."
echo "[ c | build-dependencies]: Build the dependencies (which must have been cloned first!)."
echo "[ h | help ]: Display this message."
echo ""
echo "Note: Before being able to build (debug-profile / release-profile), cloning and building the dependencies is required!"
;;
*) *)
echo "Unknown action." echo "Unknown action, try '$0 help' or '$0 h'."
;; ;;
esac esac