From 05104b607bd8010a98840d6fd6291dd49f7a322d Mon Sep 17 00:00:00 2001 From: Jan Trmal Date: Mon, 14 Nov 2016 14:55:46 -0500 Subject: [PATCH] check for swig and produce meaningful info --- tools/extras/install_sequitur.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/extras/install_sequitur.sh b/tools/extras/install_sequitur.sh index b03020f292d..02145c7f0c8 100755 --- a/tools/extras/install_sequitur.sh +++ b/tools/extras/install_sequitur.sh @@ -36,6 +36,11 @@ else fi fi +command -v swig >/dev/null 2>&1 || { + echo >&2 "$0: Error: I require swig but it's not installed."; + echo >&2 " Please install swig and run this script again. " + exit 1; +} if [ -d ./g2p ] || [ -d sequitur ] ; then echo >&2 "$0: Warning: old installation of Sequitur found. You should manually" @@ -59,7 +64,7 @@ if [ ! -d ./sequitur-g2p ] ; then } fi #just to retain backward compatibility for a while. Can be removed -#in a couple of months. +#in a couple of months. ln -sf sequitur-g2p sequitur