Skip to content

Instantly share code, notes, and snippets.

@harshavardhana
Forked from simonewebdesign/install-quake3.sh
Last active December 11, 2019 05:11
Show Gist options
  • Save harshavardhana/e7b3b37aae208d391c49b0a2c9e57d7f to your computer and use it in GitHub Desktop.
Save harshavardhana/e7b3b37aae208d391c49b0a2c9e57d7f to your computer and use it in GitHub Desktop.
Install Quake 3: Arena on a mac
#!/bin/bash
# Install Quake 3: Arena on a mac
set -e # exit on error
if [ ! -d ${HOME}/ioq3 ]; then
(cd ${HOME} && git clone https://github.com/ioquake/ioq3)
else
(cd ${HOME}/ioq3 && git pull --rebase)
fi
(cd ${HOME}/ioq3 && ./make-macosx.sh x86_64 && cd ${HOME}/ioq3/build && cp -af release-darwin-x86_64/ /Applications/ioquake3)
echo "Quake 3: Arena installation successful!"
COUNT=0
while [ $COUNT -lt 9 ]; do
if [ ! -f /Applications/ioquake3/baseq3/pak$COUNT.pk3 ]; then
curl -L http://files.anitalink.com/gamecache/quake3/baseq3/pak$COUNT.pk3 > /Applications/ioquake3/baseq3/pak$COUNT.pk3
fi
let COUNT+=1
done
read -p "Do you want to start the game now? (y/n) " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
open /Applications/ioquake3/ioquake3.app
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment