summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xbsc-nat/gen_links.sh2
-rwxr-xr-xbsc/gen_links.sh2
-rw-r--r--gen_links.sh.inc13
-rwxr-xr-xmsc/gen_links.sh2
-rwxr-xr-xselftest/gen_links.sh2
6 files changed, 16 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index d8c3ab3a..cc06c3cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ deps/*/
*.log
*.so
compile
+*/.gitignore
diff --git a/bsc-nat/gen_links.sh b/bsc-nat/gen_links.sh
index 8aa47a92..946fbafe 100755
--- a/bsc-nat/gen_links.sh
+++ b/bsc-nat/gen_links.sh
@@ -28,7 +28,7 @@ gen_links $DIR $FILES
DIR=../SCCP_CNL113341/src
FILES="SCCP_Emulation.ttcn SCCP_EncDec.cc SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn"
gen_links $DIR $FILES
-ln -sf SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
+gen_link SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src
FILES="BSSAP_Types.ttcn"
diff --git a/bsc/gen_links.sh b/bsc/gen_links.sh
index 9145ff76..50d73298 100755
--- a/bsc/gen_links.sh
+++ b/bsc/gen_links.sh
@@ -49,7 +49,7 @@ gen_links $DIR $FILES
DIR=../SCCP_CNL113341/src
FILES="SCCP_Emulation.ttcn SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn"
gen_links $DIR $FILES
-ln -sf SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
+gen_link SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src
FILES="BSSAP_Types.ttcn"
diff --git a/gen_links.sh.inc b/gen_links.sh.inc
index 2fcb9d1c..aba8ca16 100644
--- a/gen_links.sh.inc
+++ b/gen_links.sh.inc
@@ -1,12 +1,21 @@
#!dont_run_this
# This file is sourced by */gen_links.sh
+rm -f .gitignore
+
+gen_link() {
+ src="$1"
+ f="$2"
+ echo "Linking $f"
+ ln -sf "$src" "$f"
+ echo "$f" >> .gitignore
+}
+
gen_links() {
DIR=$1
shift
FILES=$*
for f in $FILES; do
- echo "Linking $f"
- ln -sf $DIR/$f $f
+ gen_link "$DIR/$f" "$f"
done
}
diff --git a/msc/gen_links.sh b/msc/gen_links.sh
index b9cbd0ac..fe091550 100755
--- a/msc/gen_links.sh
+++ b/msc/gen_links.sh
@@ -44,7 +44,7 @@ gen_links $DIR $FILES
DIR=../SCCP_CNL113341/src
FILES="SCCP_Emulation.ttcn SCCP_EncDec.cc SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn"
gen_links $DIR $FILES
-ln -s SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
+gen_link SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src
FILES="BSSAP_Types.ttcn"
diff --git a/selftest/gen_links.sh b/selftest/gen_links.sh
index 542e3c2d..2a98aafb 100755
--- a/selftest/gen_links.sh
+++ b/selftest/gen_links.sh
@@ -29,7 +29,7 @@ gen_links $DIR $FILES
DIR=../SCCP_CNL113341/src
FILES="SCCP_Emulation.ttcn SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn"
gen_links $DIR $FILES
-ln -sf SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
+gen_link SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn
DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src
FILES="BSSAP_Types.ttcn"