Skip to content

Instantly share code, notes, and snippets.

@ericwa
Created August 9, 2015 17:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericwa/360f35c92a0139961f35 to your computer and use it in GitHub Desktop.
Save ericwa/360f35c92a0139961f35 to your computer and use it in GitHub Desktop.
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