summaryrefslogtreecommitdiffstats
path: root/sysinfo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-14 19:25:31 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-14 19:26:12 +0200
commit164a28cbfbe0ec64e23a2a44eed2be122810f1d8 (patch)
tree35fb753583179f469b461363662a7939c84b1a23 /sysinfo
parentddeaa5769c7ba11aa3519186be0c701260132029 (diff)
"import" IPL4asp so we can use UDP/TCP/SCTP sockets
Importing in the Titan context apparently seems to mean symlinking the source files into the current project. I haven't found a concept of linking against libraries yet.
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/gen_links.sh25
-rwxr-xr-xsysinfo/regen_makefile.sh2
2 files changed, 26 insertions, 1 deletions
diff --git a/sysinfo/gen_links.sh b/sysinfo/gen_links.sh
new file mode 100755
index 0000000..510f702
--- /dev/null
+++ b/sysinfo/gen_links.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+BASEDIR=~/projects/git
+
+gen_links() {
+ DIR=$1
+ FILES=$*
+ for f in $FILES; do
+ echo "Linking $f"
+ ln -sf $DIR/$f $f
+ done
+}
+
+DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src
+FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCConversion.hh TCCInterface.cc TCCInterface_ip.h"
+gen_links $DIR $FILES
+
+DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src
+FILES="Socket_API_Definitions.ttcn"
+gen_links $DIR $FILES
+
+DIR=$BASEDIR/titan.TestPorts.IPL4asp/src
+FILES="IPL4asp_Functions.ttcn IPL4asp_PT.cc IPL4asp_PT.hh IPL4asp_PortType.ttcn IPL4asp_Types.ttcn IPL4asp_discovery.cc IPL4asp_protocol_L234.hh"
+gen_links $DIR $FILES
+
diff --git a/sysinfo/regen_makefile.sh b/sysinfo/regen_makefile.sh
index 191da90..93e5fc5 100755
--- a/sysinfo/regen_makefile.sh
+++ b/sysinfo/regen_makefile.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-FILES="*.ttcn"
+FILES="*.ttcn IPL4asp_PT.cc IPL4asp_discovery.cc TCCConversion.cc TCCInterface.cc"
ttcn3_makefilegen -f Test.ttcn $FILES
sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile