[PATCH] osmo-ttcn3-hacks[master]: ignore results of .ttcnpp files

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

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Mar 15 23:11:48 UTC 2018


Review at  https://gerrit.osmocom.org/7315

ignore results of .ttcnpp files

Add another macro ignore_pp_results to gen_links.sh.inc and call from all
gen_links.sh files, to add results of *.ttcnpp files, i.e. generated *.ttcn
files, to .gitignore.

Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61
---
M bsc-nat/gen_links.sh
M bsc/gen_links.sh
M bts/gen_links.sh
M gen_links.sh.inc
M ggsn_tests/gen_links.sh
M hlr/gen_links.sh
M lapdm/gen_links.sh
M mgw/gen_links.sh
M msc/gen_links.sh
M pcu/gen_links.sh
M selftest/gen_links.sh
M sgsn/gen_links.sh
M sysinfo/gen_links.sh
13 files changed, 30 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/15/7315/1

diff --git a/bsc-nat/gen_links.sh b/bsc-nat/gen_links.sh
index 946fbaf..77c9563 100755
--- a/bsc-nat/gen_links.sh
+++ b/bsc-nat/gen_links.sh
@@ -50,3 +50,5 @@
 DIR=../library
 FILES="General_Types.ttcn Osmocom_Types.ttcn GSM_Types.ttcn IPA_Types.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc IPA_Emulation.ttcnpp L3_Templates.ttcn BSSMAP_Templates.ttcn BSSMAP_Emulation.ttcn MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_CodecPort_CtrlFunctDef.cc Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn BSSAP_CodecPort.ttcn"
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/bsc/gen_links.sh b/bsc/gen_links.sh
index 50d7329..ee55c3e 100755
--- a/bsc/gen_links.sh
+++ b/bsc/gen_links.sh
@@ -75,3 +75,5 @@
 DIR=../library
 FILES="General_Types.ttcn Osmocom_Types.ttcn GSM_Types.ttcn Osmocom_VTY_Functions.ttcn Native_Functions.ttcn Native_FunctionDefs.cc IPA_Types.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc IPA_Emulation.ttcnpp L3_Templates.ttcn BSSMAP_Templates.ttcn BSSMAP_Emulation.ttcn RLCMAC_CSN1_Types.ttcn GSM_RR_Types.ttcn RSL_Types.ttcn RSL_Emulation.ttcn MGCP_Emulation.ttcn MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_CodecPort_CtrlFunctDef.cc BSSAP_CodecPort.ttcn BSSAP_Adapter.ttcn Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn Osmocom_CTRL_Adapter.ttcn RTP_CodecPort.ttcn RTP_CodecPort_CtrlFunct.ttcn RTP_CodecPort_CtrlFunctDef.cc RTP_Emulation.ttcn IuUP_Types.ttcn IuUP_EncDec.cc IuUP_Emulation.ttcn "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/bts/gen_links.sh b/bts/gen_links.sh
index b2b7e92..b6c4e12 100755
--- a/bts/gen_links.sh
+++ b/bts/gen_links.sh
@@ -43,3 +43,5 @@
 FILES+="TRXC_Types.ttcn TRXC_CodecPort.ttcn TRXC_CodecPort_CtrlFunct.ttcn TRXC_CodecPort_CtrlFunctDef.cc "
 FILES+="PCUIF_Types.ttcn PCUIF_CodecPort.ttcn "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/gen_links.sh.inc b/gen_links.sh.inc
index aba8ca1..8a87359 100644
--- a/gen_links.sh.inc
+++ b/gen_links.sh.inc
@@ -19,3 +19,10 @@
 		gen_link "$DIR/$f" "$f"
 	done
 }
+
+ignore_pp_results() {
+	for pp in *.ttcnpp; do
+		ttcn_file="$(echo $pp | sed 's/pp$//')"
+		echo "$ttcn_file" >> .gitignore
+	done
+}
diff --git a/ggsn_tests/gen_links.sh b/ggsn_tests/gen_links.sh
index 25990d3..6ef52e1 100755
--- a/ggsn_tests/gen_links.sh
+++ b/ggsn_tests/gen_links.sh
@@ -44,3 +44,5 @@
 FILES="General_Types.ttcn GSM_Types.ttcn Osmocom_Types.ttcn Native_Functions.ttcn Native_FunctionDefs.cc IPCP_Types.ttcn "
 FILES+="GTP_CodecPort.ttcn GTP_CodecPort_CtrlFunct.ttcn GTP_CodecPort_CtrlFunctDef.cc GTP_Templates.ttcn "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/hlr/gen_links.sh b/hlr/gen_links.sh
index 391ef73..c265eb8 100755
--- a/hlr/gen_links.sh
+++ b/hlr/gen_links.sh
@@ -27,3 +27,5 @@
 FILES+="Osmocom_VTY_Functions.ttcn "
 
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/lapdm/gen_links.sh b/lapdm/gen_links.sh
index 83c6699..6236edd 100755
--- a/lapdm/gen_links.sh
+++ b/lapdm/gen_links.sh
@@ -16,3 +16,5 @@
 DIR=../library
 FILES="General_Types.ttcn GSM_Types.ttcn GSM_RR_Types.ttcn RLCMAC_CSN1_Types.ttcn Osmocom_Types.ttcn L1CTL_PortType.ttcn L1CTL_PortType_CtrlFunct.ttcn L1CTL_PortType_CtrlFunctDef.cc L1CTL_Types.ttcn LAPDm_RAW_PT.ttcn LAPDm_Types.ttcn RLCMAC_Types.ttcn RLCMAC_EncDec.cc"
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/mgw/gen_links.sh b/mgw/gen_links.sh
index 445be50..d307148 100755
--- a/mgw/gen_links.sh
+++ b/mgw/gen_links.sh
@@ -32,3 +32,5 @@
 DIR=../library
 FILES="General_Types.ttcn Osmocom_Types.ttcn MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_CodecPort_CtrlFunctDef.cc RTP_CodecPort.ttcn"
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/msc/gen_links.sh b/msc/gen_links.sh
index fe09155..a7144a6 100755
--- a/msc/gen_links.sh
+++ b/msc/gen_links.sh
@@ -75,3 +75,5 @@
 FILES+="RTP_CodecPort.ttcn RTP_CodecPort_CtrlFunctDef.cc "
 FILES+="MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunctDef.cc "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/pcu/gen_links.sh b/pcu/gen_links.sh
index 4852981..06ed606 100755
--- a/pcu/gen_links.sh
+++ b/pcu/gen_links.sh
@@ -51,3 +51,5 @@
 FILES+="BSSGP_Emulation.ttcn Osmocom_Gb_Types.ttcn "
 FILES+="LLC_Templates.ttcn L3_Templates.ttcn L3_Common.ttcn "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/selftest/gen_links.sh b/selftest/gen_links.sh
index 2a98aaf..b5e86cb 100755
--- a/selftest/gen_links.sh
+++ b/selftest/gen_links.sh
@@ -42,3 +42,5 @@
 DIR=../library
 FILES="General_Types.ttcn Osmocom_Types.ttcn GSM_Types.ttcn IPA_Types.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc IPA_Emulation.ttcnpp L3_Templates.ttcn BSSMAP_Templates.ttcn RLCMAC_CSN1_Types.ttcn GSM_RR_Types.ttcn RSL_Types.ttcn BSSAP_CodecPort.ttcn Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn GSUP_Types.ttcn"
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/sgsn/gen_links.sh b/sgsn/gen_links.sh
index c3c6add..1c3fb1d 100755
--- a/sgsn/gen_links.sh
+++ b/sgsn/gen_links.sh
@@ -65,3 +65,5 @@
 FILES+="GTP_CodecPort.ttcn GTP_CodecPort_CtrlFunct.ttcn GTP_CodecPort_CtrlFunctDef.cc GTP_Emulation.ttcn
 GTP_Templates.ttcn IPCP_Types.ttcn "
 gen_links $DIR $FILES
+
+ignore_pp_results
diff --git a/sysinfo/gen_links.sh b/sysinfo/gen_links.sh
index ad7891a..314b3b1 100755
--- a/sysinfo/gen_links.sh
+++ b/sysinfo/gen_links.sh
@@ -24,3 +24,4 @@
 FILES="GSMTAP_PortType.ttcn GSMTAP_Types.ttcn GSM_SystemInformation.ttcn GSM_RR_Types.ttcn RLCMAC_CSN1_Types.ttcn GSM_Types.ttcn IPL4_GSMTAP_CtrlFunct.ttcn IPL4_GSMTAP_CtrlFunctDef.cc Osmocom_Types.ttcn General_Types.ttcn Osmocom_VTY_Functions.ttcn"
 gen_links $DIR $FILES
 
+ignore_pp_results

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list