warzone2100/macosx/external/bison.sh

14 lines
311 B
Bash
Raw Normal View History

#!/bin/bash
# System Bison executable
SYS_BISON="bison"
# Local Warzone Bison executable (relative to macosx/)
LOCAL_BISON="`pwd`/external/bison/built/bin/bison"
# If a Warzone Bison executable exists, use instead of the system executable
if [ -e $LOCAL_BISON ]; then
$LOCAL_BISON $*
else
$SYS_BISON $*
fi