Skip to content

Commit

Permalink
Copying setup_and_build scripts from Christmas_Demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
razterizer committed Dec 11, 2024
1 parent 2f77aa1 commit df031ec
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
34 changes: 34 additions & 0 deletions setup_and_build.bat
Original file line number Diff line number Diff line change
@@ -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
35 changes: 35 additions & 0 deletions setup_and_build_debian.sh
Original file line number Diff line number Diff line change
@@ -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

35 changes: 35 additions & 0 deletions setup_and_build_macos.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df031ec

Please sign in to comment.