From 47b4530245f1ca0f8503af18bee459d3a9f2e6b6 Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Sun, 14 Jun 2015 20:43:12 +0000 Subject: [PATCH] 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. --- build/workspaces/update-workspaces.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/workspaces/update-workspaces.sh b/build/workspaces/update-workspaces.sh index 7f1227e240..5a43d13fde 100644 --- a/build/workspaces/update-workspaces.sh +++ b/build/workspaces/update-workspaces.sh @@ -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" ;;