[twine] Fixed strings regeneration script on Mac OS X

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2021-03-20 14:49:19 +01:00 committed by Alexander Borsuk
parent a6abb4572c
commit 0d3c485cbf

View file

@ -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"