Skip to content

Commit

Permalink
setup_and_build_demos.bat:
Browse files Browse the repository at this point in the history
* Hopefully this superfolder check will work in this script.
  • Loading branch information
razterizer committed Dec 15, 2024
1 parent c69ed73 commit 4f0a6ca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup_and_build_demos.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ set BUILD_DIR=demos
REM Change directory
cd ..

REM Define the required folder name
set "REQUIRED_NAME=lib"
REM Get the current folder name
for %%F in ("%CD%") do set "CURRENT_NAME=%%~nF"
REM Check if the current folder name matches the required name
if not "%CURRENT_NAME%"=="%REQUIRED_NAME%" (
color 0C
echo Warning: You are not in the correct folder. It is highly recommended that you check out the 8Beat repo in a folder named "%REQUIRED_NAME%". The demos will run fine but other repos might expect to find it there.
REM pause
REM exit /b 1
)
REM Reset color and continue with the script
color 07

REM Run the dependency fetch script
python "%REPO_DIR%\fetch-dependencies.py" "%REPO_DIR%\dependencies"

Expand Down

0 comments on commit 4f0a6ca

Please sign in to comment.