Add script to regen library/DIAMETER_Types.ttcn
This way we have a reproducible way to generate the same
library/DIAMETER_Types.ttcn file.
Change-Id: Ie6fdb8003a0faf25a5bf4027b672da73f788988e
diff --git a/Makefile b/Makefile
index 1d5e670..fbd380c 100644
--- a/Makefile
+++ b/Makefile
@@ -110,9 +110,12 @@
$(eval $(call DIR_all_template,$(dir))) \
)
-.PHONY: tags
+.PHONY: tags regen-diameter-types-ttcn
tags:
find $(shell pwd) \
-type f -name "*.ttcn" -o \
-type f -name "*.ttcnpp" | \
xargs ctags
+
+regen-diameter-types-ttcn:
+ (cd library/ && ./regen-DIAMETER_Types_ttcn.sh)
diff --git a/library/regen-DIAMETER_Types_ttcn.sh b/library/regen-DIAMETER_Types_ttcn.sh
new file mode 100755
index 0000000..5f701c8
--- /dev/null
+++ b/library/regen-DIAMETER_Types_ttcn.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+SELF_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" # dirname of this script (library/)
+AVP_SH_DIR="$SELF_DIR/../deps/titan.ProtocolModules.DIAMETER_ProtocolModule_Generator/src"
+AVP_SH_PATH="$AVP_SH_DIR/AVP.sh"
+cd $AVP_SH_DIR
+$AVP_SH_PATH \
+ Base_IETF_RFC3588.ddf \
+ BaseTypes_IETF_RFC3588.ddf \
+ AAAInterface_3GPP_TS29272_f10.ddf \
+ GxInterface_PCC_3GPP_TS29212_f10.ddf \
+ S6Interfaces_3GPP_TS29336_f00.ddf \
+ MobileIPv6_HA_IETF_RFC5778.ddf \
+ RxInterface_PCC_3GPP_TS29214_f20.ddf \
+ NetworkAccessServer_IETF_RFC4005.ddf \
+ CreditControl_IETF_RFC4006.ddf \
+ CxDxInterface_3GPP_TS29229_c30.ddf \
+ GiSGiInterface_3GPP_TS29061_d70.ddf
+
+mv -v $AVP_SH_DIR/DIAMETER_Types.ttcn $SELF_DIR/