ports/devel/eclipse-titan/files/patch-mctr2-mctr-ttcn3_start
Hiroki Sato 1ff22df329
devel/eclipse-titan: Add new port
Eclipse Titan is an open-source implementation of TTCN-3 compilation and
execution environment.  TTCN-3 is a modular language specifically designed
for testing, standardized by ETSI, and endorsed by ITU.
2025-06-12 23:51:51 +09:00

22 lines
545 B
Plaintext

--- mctr2/mctr/ttcn3_start.orig 2024-11-14 11:50:43 UTC
+++ mctr2/mctr/ttcn3_start
@@ -18,11 +18,15 @@ fi
# hide next line from expect \
fi
+# Set the default TTCN3_DIR only if TTCN3_DIR is unset. \
+: ${TTCN3_DIR=%%TTCN3_DIR%%}; \
+case ${TTCN3_DIR} in \
+"") SETENV= ;; \
+*) SETENV="env TTCN3_DIR=${TTCN3_DIR}" ;; \
+esac
-
-
# the next line restarts using expect \
-exec expect "$0" "$@"
+exec ${SETENV} expect "$0" "$@"
#####################################################
## ##