forked from organicmaps/organicmaps
[twine] Fixed strings regeneration script on Mac OS X
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
a6abb4572c
commit
0d3c485cbf
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e -u -x
|
||||
|
||||
# Use ruby from brew on Mac OS X, because system ruby is outdated/broken/will be removed in future releases.
|
||||
case $OSTYPE in darwin*)
|
||||
if [ -f /usr/local/opt/ruby/bin/ruby ]; then
|
||||
PATH="/usr/local/opt/ruby/bin:$PATH"
|
||||
else
|
||||
echo 'Please install Homebrew ruby by running "brew install ruby"'
|
||||
exit -1
|
||||
fi
|
||||
esac
|
||||
|
||||
OMIM_PATH="$(dirname "$0")/../.."
|
||||
TWINE="$OMIM_PATH/tools/twine/twine"
|
||||
STRINGS_PATH="$OMIM_PATH/data/strings"
|
||||
|
|
Loading…
Add table
Reference in a new issue