Ticket #514: update_workspaces.patch
File update_workspaces.patch, 801 bytes (added by , 12 years ago) |
---|
-
update-workspaces.sh
9 9 # Check for whitespace in absolute path; this will cause problems in the 10 10 # SpiderMonkey build (https://bugzilla.mozilla.org/show_bug.cgi?id=459089) 11 11 # and maybe elsewhere, so we just forbid it 12 SCRIPT=$(readlink -f "$0") 13 SCRIPTPATH=`dirname "$SCRIPT"` 12 SCRIPT=$(readlink -f "$0" 2>/dev/null) 13 if (($?)) 14 then 15 SCRIPTPATH=`perl -e 'use Cwd "abs_path";use File::Basename;print dirname(abs_path(shift))' $0` 16 else 17 SCRIPTPATH=`dirname "$SCRIPT"` 18 fi 19 14 20 case "$SCRIPTPATH" in 15 21 *\ * ) 16 22 die "Absolute path contains whitespace, which will break the build - move the game to a path without spaces" ;;