Harald Welte | 28d943e | 2017-11-25 15:00:50 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | BASEDIR=~/projects/git |
| 4 | |
| 5 | gen_links() { |
| 6 | DIR=$1 |
| 7 | FILES=$* |
| 8 | for f in $FILES; do |
| 9 | echo "Linking $f" |
| 10 | ln -sf $DIR/$f $f |
| 11 | done |
| 12 | } |
| 13 | |
| 14 | #DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src |
| 15 | #FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn" |
| 16 | #gen_links $DIR $FILES |
| 17 | |
| 18 | DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src |
| 19 | FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCConversion.hh TCCInterface.cc TCCInterface_ip.h SDP_EncDec.cc" |
| 20 | gen_links $DIR $FILES |
| 21 | |
| 22 | DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src |
| 23 | FILES="Socket_API_Definitions.ttcn" |
| 24 | gen_links $DIR $FILES |
| 25 | |
| 26 | DIR=$BASEDIR/titan.TestPorts.IPL4asp/src |
| 27 | FILES="IPL4asp_Functions.ttcn IPL4asp_PT.cc IPL4asp_PT.hh IPL4asp_PortType.ttcn IPL4asp_Types.ttcn IPL4asp_discovery.cc IPL4asp_protocol_L234.hh" |
| 28 | gen_links $DIR $FILES |
| 29 | |
| 30 | # required by SCCP Emulation |
| 31 | DIR=../MTP3asp_CNL113337/src |
| 32 | FILES="MTP3asp_PortType.ttcn MTP3asp_Types.ttcn" |
| 33 | gen_links $DIR $FILES |
| 34 | |
| 35 | DIR=../SCCP_CNL113341/src |
| 36 | FILES="SCCP_Emulation.ttcn SCCP_EncDec.cc SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn" |
| 37 | gen_links $DIR $FILES |
| 38 | ln -sf SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn |
| 39 | |
| 40 | DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src |
| 41 | FILES="BSSAP_Types.ttcn" |
| 42 | gen_links $DIR $FILES |
| 43 | |
| 44 | DIR=$BASEDIR/titan.ProtocolModules.MobileL3_v13.4.0/src |
| 45 | FILES="MobileL3_CC_Types.ttcn MobileL3_CommonIE_Types.ttcn MobileL3_GMM_SM_Types.ttcn MobileL3_MM_Types.ttcn MobileL3_RRM_Types.ttcn MobileL3_SMS_Types.ttcn MobileL3_SS_Types.ttcn MobileL3_Types.ttcn" |
| 46 | gen_links $DIR $FILES |
| 47 | |
| 48 | DIR=$BASEDIR/titan.ProtocolModules.SDP/src |
| 49 | FILES="SDP_EncDec.cc SDP_Types.ttcn SDP_parse_.tab.c SDP_parse_.tab.h SDP_parse_parser.h SDP_parser.l |
| 50 | SDP_parser.y lex.SDP_parse_.c" |
| 51 | gen_links $DIR $FILES |
| 52 | |
| 53 | DIR=$BASEDIR/titan.ProtocolModules.RTP/src |
| 54 | FILES="RTP_EncDec.cc RTP_Types.ttcn" |
| 55 | gen_links $DIR $FILES |
| 56 | |
| 57 | DIR=../library |
| 58 | FILES="General_Types.ttcn Osmocom_Types.ttcn IPA_Types.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc IPA_Emulation.ttcn L3_Templates.ttcn BSSMAP_Templates.ttcn BSSMAP_Emulation.ttcn MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_CodecPort_CtrlFunctDef.cc" |
| 59 | gen_links $DIR $FILES |