Skip to content

Commit

Permalink
Merge pull request #3 from nolanlawson/patch-1
Browse files Browse the repository at this point in the history
Update bin/alh.sh with fix for Mac users
  • Loading branch information
4e6 committed Mar 4, 2013
2 parents 2e2b07d + 3852dac commit 4bd082c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion bin/alh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
#
# Start-up script

L10N_HELPER_HOME="$(dirname "$(readlink -f "$0")")/.."
L10N_COMMAND=readlink

# Mac OS X doesn't support "readlink -f", but Homebrew offers a "coreutils"
# package that contains "greadlink" (GNU readlink)
if [ `uname` = 'Darwin' ]; then
L10N_COMMAND=greadlink
if [ -z `which greadlink` ]; then
echo "greadlink not found. Please install it using homebrew:" 1>&2
echo "brew install coreutils" 1>&2
exit 1
fi
fi

L10N_HELPER_HOME="$(dirname "$($L10N_COMMAND -f "$0")")/.."

java -jar $L10N_HELPER_HOME/lib/l10n-helper.jar $1 $2

0 comments on commit 4bd082c

Please sign in to comment.