regen-makefile.sh: Exit with clear error if ttcn3 bin not found

Change-Id: I866a758ec472968f368866e3b3b24dc6f14ac7cb
This commit is contained in:
Pau Espin 2018-01-29 11:48:38 +01:00
parent 5c9d99f735
commit ef85dfa942
1 changed files with 2 additions and 0 deletions

View File

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