pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/28142 )

Change subject: Add script to regen library/DIAMETER_Types.ttcn
......................................................................

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
---
M Makefile
A library/regen-DIAMETER_Types_ttcn.sh
2 files changed, 24 insertions(+), 1 deletion(-)

Approvals:
  fixeria: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved
  Jenkins Builder: Verified



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/

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/28142
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie6fdb8003a0faf25a5bf4027b672da73f788988e
Gerrit-Change-Number: 28142
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to