Skip to content

Commit

Permalink
setup_and_build_demos_macos.h:
Browse files Browse the repository at this point in the history
* Added a check for if you have cloned this repo to a superfolder called lib or not and if not outputs a warning message.
  • Loading branch information
razterizer committed Dec 15, 2024
1 parent f3a39e1 commit e813dd9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup_and_build_demos_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ brew install openal-soft

cd ..

# Define the required folder name
REQUIRED_NAME="lib"
# Get the current folder name
CURRENT_NAME=$(basename "$PWD")
# Check if the current folder name matches the required name
if [[ "$CURRENT_NAME" != "$REQUIRED_NAME" ]]; then
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."
# exit 1
fi

./"${REPO_DIR}"/fetch-dependencies.py "${REPO_DIR}"/dependencies

cd "${REPO_DIR}/${BUILD_DIR}"
Expand Down

0 comments on commit e813dd9

Please sign in to comment.