Replaces usage of readlink -f in update-workspaces.sh with a perl one-liner, for compatibility with BSD and OS X, fixes #916
This was SVN commit r16767.
This commit is contained in:
parent
2128cfbcb8
commit
47b4530245
@ -14,8 +14,8 @@ die()
|
||||
# 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"`
|
||||
# Use perl as an alternative to readlink -f, which isn't available on BSD or OS X
|
||||
SCRIPTPATH=`perl -MCwd -e 'print Cwd::abs_path shift' "$0"`
|
||||
case "$SCRIPTPATH" in
|
||||
*\ * )
|
||||
die "Absolute path contains whitespace, which will break the build - move the game to a path without spaces" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user