summaryrefslogtreecommitdiffstats
path: root/regen-makefile.sh
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-29 11:48:38 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-29 11:51:52 +0100
commitef85dfa942eb3124421faff356118bc0c9087cf4 (patch)
tree24a6e28f6c0b40ae98d5f2e7ddb70adf8fb222a7 /regen-makefile.sh
parent5c9d99f735bd49c9afa0030756213585d292cac7 (diff)
regen-makefile.sh: Exit with clear error if ttcn3 bin not found
Diffstat (limited to 'regen-makefile.sh')
-rwxr-xr-xregen-makefile.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/regen-makefile.sh b/regen-makefile.sh
index e89b3ee..7edd783 100755
--- a/regen-makefile.sh
+++ b/regen-makefile.sh
@@ -10,6 +10,8 @@
# unstable, so far tested with TITAN 6.1.0, 6.2.0 and 6.3.0
#
+test -x "$(which ttcn3_makefilegen 2>/dev/null)" || { echo "ERROR: ttcn3_makefilegen not in PATH"; exit 1; }
+
ttcn3_makefilegen -l -f $*
sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile
sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' Makefile