1
0
forked from 0ad/0ad

Fix #916 (complain about spaces in build paths), based on patch from philip_flohr

This was SVN commit r11380.
This commit is contained in:
Ykkrosh 2012-03-20 22:29:56 +00:00
parent 97479830e9
commit 10fd5e57db

View File

@ -6,6 +6,16 @@ die()
exit 1
}
# Check for whitespace in absolute path; this will cause problems in the
# SpiderMonkey build (https://bugzilla.mozilla.org/show_bug.cgi?id=459089)
# and maybe elsewhere, so we just forbid it
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=`dirname "$SCRIPT"`
case "$SCRIPTPATH" in
*\ * )
die "Absolute path contains whitespace, which will break the build - move the game to a path without spaces" ;;
esac
JOBS=${JOBS:="-j2"}
# FreeBSD's make is different than GNU make, so we allow overriding the make command.