aboutsummaryrefslogtreecommitdiffstats
path: root/sysinfo
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-15 22:04:41 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-03-16 00:08:02 +0100
commit1a4c4601d7e32e004e99c20a9c2dc78112208a7f (patch)
tree827d18ef0b94255c4abe85840582f5f2357f82a2 /sysinfo
parent4b2692d50bd24eccfb4973a0d968dbe16799e692 (diff)
fix gen_links.sh: don't include source dir as link target
First of all, use one common place to define the gen_links() macro, in gen_links.sh.inc. In this new file, add a 'shift' to exclude the $DIR arg from also appearing in $FILES. This prevents the following wrong symlinks in the source dirs: M3UA_CNL113537/src/src MTP3asp_CNL113337/src/src SCCP_CNL113341/src/src Change-Id: Ia8493e77df1ba8723f2c5d2a49816247b0fb55f7
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/gen_links.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/sysinfo/gen_links.sh b/sysinfo/gen_links.sh
index ba077335..ad7891ab 100755
--- a/sysinfo/gen_links.sh
+++ b/sysinfo/gen_links.sh
@@ -2,14 +2,7 @@
BASEDIR=../deps
-gen_links() {
- DIR=$1
- FILES=$*
- for f in $FILES; do
- echo "Linking $f"
- ln -sf $DIR/$f $f
- done
-}
+. ../gen_links.sh.inc
DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src
FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCInterface.cc TCCInterface_ip.h"