Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Quake map build script
#!/bin/bash
# Strip off the .map extension
MAPNAME=$(basename $1 .map)
# Update as needed
UTILSPATH=~/dev/tyrutils/bin
DEST=/Applications/quake/id1/maps
rm $MAPNAME.lit
rm $MAPNAME.bsp
$UTILSPATH/qbsp -oldaxis $MAPNAME.map
$UTILSPATH/vis $MAPNAME.map
$UTILSPATH/light -lit $MAPNAME.map
cp $MAPNAME.bsp $DEST
cp $MAPNAME.lit $DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment