2023-10-17 13:17:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-11-17 22:11:18 +01:00
|
|
|
command_one() {
|
|
|
|
echo "Building with Debug Logs..."
|
|
|
|
./kernel_build/build.sh "$(pwd)" || exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
command_two() {
|
2024-11-17 22:32:40 +01:00
|
|
|
echo "Disabled temporary"
|
2024-11-17 22:11:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
command_three() {
|
|
|
|
echo "Exiting, really that quickly? :sob:"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main loop
|
|
|
|
while true; do
|
|
|
|
echo ""
|
|
|
|
echo "Choose what to do:"
|
|
|
|
echo "1: Build FireAsf kernel with Debug Logs"
|
|
|
|
echo "2: Build FireAsf kernel without Debug Logs"
|
|
|
|
echo "Type 'exit' to guess what? Exit, yeah exit!"
|
|
|
|
read -p "Make a good choice: " choice
|
|
|
|
|
|
|
|
case $choice in
|
|
|
|
1)
|
|
|
|
command_one
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
command_two
|
|
|
|
;;
|
|
|
|
exit)
|
|
|
|
echo "Exiting the program. Goodbye!"
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Invalid. Learn how to type."
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|