better script (we can only compile)

Signed-off-by: Mathéo Hersan <matheohersan@MacBook-Pro-de-Matheo.local>
pull/12/head
Mathéo Hersan 1 year ago
parent 158ee7bd97
commit 34af6d479d
No known key found for this signature in database
GPG Key ID: 4EF19C64D78EC91B

BIN
app

Binary file not shown.

@ -58,7 +58,7 @@ function build {
show_success "Compilation completed."
}
# Execute
# Execute
function execute {
local executable="$APP_NAME"
local command="./$executable"
@ -79,6 +79,7 @@ function show_help {
echo -e "\t-rbuild, -rb : \t➔ Clean before rebuilding and execute (alternative)"
echo -e "\t-debug, -d : \t➔ Configure compilation in debug mode"
echo -e "\t-run, -r : \t➔ Execute the generated executable"
echo -e "\t-build, -b : \t➔ Only compile (no cleaning or execution)"
echo -e "\t-clean, -c : \t➔ Clean before rebuilding and execute"
echo -e "\t-docs : \t➔ Generate Doxygen documentation"
echo -e "\t--help, -h : \t➔ Display help"
@ -117,6 +118,10 @@ while [ "$#" -gt 0 ]; do
execute
shift
;;
-build | -b)
build
shift
;;
-docs)
generate_docs
shift
@ -131,4 +136,4 @@ while [ "$#" -gt 0 ]; do
;;
esac
shift
done
done

Loading…
Cancel
Save