Change in osmo-ttcn3-hacks[master]: regen_makefile.sh: remove duplicate main file

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

osmith gerrit-no-reply at lists.osmocom.org
Wed Oct 13 03:44:12 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25758 )


Change subject: regen_makefile.sh: remove duplicate main file
......................................................................

regen_makefile.sh: remove duplicate main file

Make the regen_makefile.sh more consistent by removing the "MAIN" file
on top, which some of them still have. All regen_makefile.sh have a
*.ttcn glob in FILES that match the main file too. So it is redundant
and can be removed.

Fix for warning:
ttcn3_makefilegen: warning: File `BSC_Tests.ttcn' was given more than once for the Makefile.

Related: OS#5252
Change-Id: I5ed03f8f3ed905483620dc7bae33b617bbb8507f
---
M SCCP_Test/regen_makefile.sh
M bsc-nat/regen_makefile.sh
M bsc/regen_makefile.sh
M hlr/regen_makefile.sh
M selftest/regen_makefile.sh
M smlc/regen_makefile.sh
6 files changed, 6 insertions(+), 18 deletions(-)



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

diff --git a/SCCP_Test/regen_makefile.sh b/SCCP_Test/regen_makefile.sh
index f5d13b7..6eaeb03 100755
--- a/SCCP_Test/regen_makefile.sh
+++ b/SCCP_Test/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN=SCCP_Testcases.ttcn
-
 FILES="
 	*.ttcn
 	*.ttcnpp
@@ -10,4 +8,4 @@
 export CPPFLAGS_TTCN3="
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES
diff --git a/bsc-nat/regen_makefile.sh b/bsc-nat/regen_makefile.sh
index 33b557c..6838904 100755
--- a/bsc-nat/regen_makefile.sh
+++ b/bsc-nat/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN=BSCNAT_Tests.ttcn
-
 FILES="
 	*.c
 	*.ttcn
@@ -29,4 +27,4 @@
 	-DUSE_MTP3_DISTRIBUTOR
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES
diff --git a/bsc/regen_makefile.sh b/bsc/regen_makefile.sh
index 53f8e82..d21a709 100755
--- a/bsc/regen_makefile.sh
+++ b/bsc/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN=BSC_Tests.ttcn
-
 FILES="
 	*.c
 	*.ttcn
@@ -34,4 +32,4 @@
 	-DUSE_MTP3_DISTRIBUTOR
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES
diff --git a/hlr/regen_makefile.sh b/hlr/regen_makefile.sh
index 9ab40ce..a69419d 100755
--- a/hlr/regen_makefile.sh
+++ b/hlr/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN="HLR_Tests.ttcn"
-
 FILES="
 	*.asn
 	*.ttcn
@@ -24,4 +22,4 @@
 	-DIPA_EMULATION_CTRL
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES
diff --git a/selftest/regen_makefile.sh b/selftest/regen_makefile.sh
index 17854ce..3fc0e89 100755
--- a/selftest/regen_makefile.sh
+++ b/selftest/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN=Selftest.ttcn
-
 FILES="
 	*.ttcn
 	*.ttcnpp
@@ -19,4 +17,4 @@
 	-DUSE_MTP3_DISTRIBUTOR
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES
diff --git a/smlc/regen_makefile.sh b/smlc/regen_makefile.sh
index 24e3407..da296a8 100755
--- a/smlc/regen_makefile.sh
+++ b/smlc/regen_makefile.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-MAIN=SMLC_Tests.ttcn
-
 FILES="
 	*.c
 	*.ttcn
@@ -32,4 +30,4 @@
 	-DUSE_MTP3_DISTRIBUTOR
 "
 
-../regen-makefile.sh $MAIN $FILES
+../regen-makefile.sh $FILES

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25758
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: I5ed03f8f3ed905483620dc7bae33b617bbb8507f
Gerrit-Change-Number: 25758
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211013/d4c61748/attachment.htm>


More information about the gerrit-log mailing list