Skip to content

Instantly share code, notes, and snippets.

@ericwa ericwa/build.sh
Created Aug 9, 2015

Embed
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
You can’t perform that action at this time.