From 1a4c4601d7e32e004e99c20a9c2dc78112208a7f Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 15 Mar 2018 22:04:41 +0100 Subject: 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 --- bsc-nat/gen_links.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'bsc-nat') diff --git a/bsc-nat/gen_links.sh b/bsc-nat/gen_links.sh index e9280e68..8aa47a92 100755 --- a/bsc-nat/gen_links.sh +++ b/bsc-nat/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.TestPorts.UNIX_DOMAIN_SOCKETasp/src #FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn" -- cgit v1.2.3