Adapt build script to automatically opening quickfix

This commit is contained in:
2026-05-19 14:45:58 +02:00
parent cd0ef696d7
commit bacda4cd00

View File

@@ -2,43 +2,30 @@
clear clear
header() {
echo ""
echo ""
echo "================================================================================"
echo "================================================================================"
echo " [[ $1 ]]"
echo "================================================================================"
echo "================================================================================"
echo ""
echo ""
}
if [ $1 = "build" ]; then if [ $1 = "build" ]; then
header "Building" echo "Building"
make main -B make main -B
elif [ $1 = "run" ]; then elif [ $1 = "run" ]; then
header "Running" echo "Running"
make main make main
./output/main 5000 ./library "Testing library" ./output/main 5000 ./library "Testing library"
elif [ $1 = "debug" ]; then elif [ $1 = "debug" ]; then
header "Debugging" echo "Debugging"
make main make main
gf2 ./output/main gf2 ./output/main
elif [ $1 = "clean" ]; then elif [ $1 = "clean" ]; then
header "Cleaning" echo "Cleaning"
rm -rf ./output/ rm -rf ./output/
else else
header "Invalid command." echo "Invalid command."
fi fi