[MERGED] osmo-ttcn3-hacks[master]: regen-makefile.sh: Exit with clear error if ttcn3 bin not found

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Jan 29 21:33:29 UTC 2018


Harald Welte has submitted this change and it was merged.

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


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

Change-Id: I866a758ec472968f368866e3b3b24dc6f14ac7cb
---
M regen-makefile.sh
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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

-- 
To view, visit https://gerrit.osmocom.org/6153
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I866a758ec472968f368866e3b3b24dc6f14ac7cb
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list