diff --git a/setup_and_build.bat b/setup_and_build.bat new file mode 100644 index 0000000..3a9b1d4 --- /dev/null +++ b/setup_and_build.bat @@ -0,0 +1,34 @@ +@echo off + +set REPO_DIR=Pilot_Episode + +REM Change directory +cd .. + +REM Run the dependency fetch script +python "%REPO_DIR%\fetch-dependencies.py" "%REPO_DIR%\dependencies" + +REM Navigate to the appropriate directory +cd "%REPO_DIR%\%REPO_DIR%" + +REM Run the build script +call build.bat + +:askUser +REM Ask the user if they want to run the program +set /p response=Do you want to run the program? (yes/no): + +REM Process the response +if /i "%response%"=="yes" ( + echo Running the program... + call run.bat + goto end +) else if /i "%response%"=="no" ( + echo Alright. Have a nice day! + goto end +) else ( + echo Invalid response. Please answer yes or no. + goto askUser +) + +:end diff --git a/setup_and_build_debian.sh b/setup_and_build_debian.sh new file mode 100644 index 0000000..f375bbd --- /dev/null +++ b/setup_and_build_debian.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +REPO_DIR="Pilot_Episode" + +sudo apt install libopenal-dev + +cd .. + +./"${REPO_DIR}"/fetch-dependencies.py "${REPO_DIR}"/dependencies + +cd "${REPO_DIR}/${REPO_DIR}" + +./build.sh + +while true; do + # Ask the user + read -p "Do you want to run the program? (yes/no): " response + + # Process the response + case "$response" in + yes|y|Y|YES|Yes) + echo "Running the program..." + ./run.sh + break + ;; + no|n|N|NO|No) + echo "Alright. Have a nice day!" + break + ;; + *) + echo "Invalid response. Please answer yes or no." + ;; + esac +done + diff --git a/setup_and_build_macos.sh b/setup_and_build_macos.sh new file mode 100644 index 0000000..4cb5c42 --- /dev/null +++ b/setup_and_build_macos.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +REPO_DIR="Pilot_Episode" + +brew install openal-soft + +cd .. + +./"${REPO_DIR}"/fetch-dependencies.py "${REPO_DIR}"/dependencies + +cd "${REPO_DIR}/${REPO_DIR}" + +./build.sh + +while true; do + # Ask the user + read -p "Do you want to run the program? (yes/no): " response + + # Process the response + case "$response" in + yes|y|Y|YES|Yes) + echo "Running the program..." + ./run.sh + break + ;; + no|n|N|NO|No) + echo "Alright. Have a nice day!" + break + ;; + *) + echo "Invalid response. Please answer yes or no." + ;; + esac +done +