Debian Codegraph @

protolib/src/sim/ns/patch-ns.sh

raw
1 #!/bin/sh
2
3 # Before running this patch, build your ns-allinone distribution.
4
5 # After running this patch, go to the NS_SRC_DIR
6 # and "./configure; make ns"
7
8 NS_SRC_DIR=/home/adamson/ns/ns-allinone-2.29/ns-2.29
9
10 PROTOLIB_SRC_DIR=/home/adamson/PROTOLIB/protolib
11
12 MDP_SRC_DIR=/home/adamson/MDP/mdp
13
14 NORM_SRC_DIR=/home/adamson/NORM/norm
15
16 MGEN_SRC_DIR=/home/adamson/MGEN/mgen
17
18 CWD=`pwd`
19
20 # 1) Point to modified version of ns-2 Makefile.in
21
22 rm -i $NS_SRC_DIR/Makefile.in
23 ln -s $CWD/ns229-Makefile.in $NS_SRC_DIR/Makefile.in
24
25 # 2) Add a link to our Protolib source code directory
26 rm -rif $NS_SRC_DIR/protolib
27 ln -s $PROTOLIB_SRC_DIR $NS_SRC_DIR/protolib
28
29 # 3) Add a link to our MDP source code directory
30 rm -rif $NS_SRC_DIR/mdp
31 ln -s $MDP_SRC_DIR $NS_SRC_DIR/mdp
32
33 # 4) Add a link to our NORM source code directory
34 rm -rif $NS_SRC_DIR/norm
35 ln -s $NORM_SRC_DIR $NS_SRC_DIR/norm
36
37 # 5) Add a link to our MGEN source code directory
38 rm -rif $NS_SRC_DIR/mgen
39 ln -s $MGEN_SRC_DIR $NS_SRC_DIR/mgen
40