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