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
This commit is contained in:
Pau Espin 2022-05-17 19:15:17 +02:00 committed by pespin
parent ee4d70c025
commit c24a18c594
2 changed files with 24 additions and 1 deletions

View File

@ -110,9 +110,12 @@ $(foreach dir,$(SUBDIRS), \
$(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)

View File

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