summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-16 00:03:00 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-03-16 18:25:58 +0100
commitcd11223c0f78b9d101dcf5b5d012b571c48c1a21 (patch)
tree76df29f90e34492a7bb8268e3c199041b90beb69
parent0ad8f7e0982dbfcd57f3f4d5d5691c4e6d861208 (diff)
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
-rwxr-xr-xbsc-nat/gen_links.sh2
-rwxr-xr-xbsc/gen_links.sh2
-rwxr-xr-xbts/gen_links.sh2
-rw-r--r--gen_links.sh.inc7
-rwxr-xr-xggsn_tests/gen_links.sh2
-rwxr-xr-xhlr/gen_links.sh2
-rwxr-xr-xlapdm/gen_links.sh2
-rwxr-xr-xmgw/gen_links.sh2
-rwxr-xr-xmsc/gen_links.sh2
-rwxr-xr-xpcu/gen_links.sh2
-rwxr-xr-xselftest/gen_links.sh2
-rwxr-xr-xsgsn/gen_links.sh2
-rwxr-xr-xsysinfo/gen_links.sh1
13 files changed, 30 insertions, 0 deletions
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 @@ gen_links $DIR $FILES
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 @@ gen_links $DIR $FILES
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+="Native_Functions.ttcn Native_FunctionDefs.cc "
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_links() {
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 @@ DIR=../library
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_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn Osmocom_CTRL_Adapter
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 @@ gen_links $DIR $FILES
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 @@ gen_links $DIR $FILES
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+="BSSMAP_Emulation.ttcn BSSAP_CodecPort.ttcn BSSMAP_Templates.ttcn BSSAP_A
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+="NS_Emulation.ttcn NS_CodecPort.ttcn NS_CodecPort_CtrlFunct.ttcn NS_Codec
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 @@ gen_links $DIR $FILES
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+="IPA_Types.ttcn IPA_Emulation.ttcnpp IPA_CodecPort.ttcn IPA_CodecPort_Ctr
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 @@ DIR=../library
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