Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.