author | frederic.urbani@inria.fr |
Tue, 09 Aug 2011 10:37:36 +0200 | |
changeset 140 | 429a3d6415db |
parent 134 | 62b921ab6f2a |
child 148 | 5dd2d890f1a0 |
permissions | -rwxr-xr-x |
119 | 1 |
#!/bin/bash |
2 |
# this script checkout NS3 and DCE sources, and build them. |
|
120 | 3 |
cd `dirname $BASH_SOURCE`/../.. |
119 | 4 |
SAVE_PATH=$PATH |
5 |
SAVE_LDLP=$LD_LIBRARY_PATH |
|
6 |
SAVE_PKG=$PKG_CONFIG_PATH |
|
120 | 7 |
#echo clone ns-3-dce : |
8 |
#hg clone http://code.nsnam.org/furbani/ns-3-dce |
|
119 | 9 |
echo clone readversiondef |
10 |
hg clone http://code.nsnam.org/mathieu/readversiondef |
|
11 |
echo clone ns-3-linux |
|
12 |
hg clone http://code.nsnam.org/mathieu/ns-3-linux |
|
134 | 13 |
echo clone ns-3-dev |
14 |
hg clone http://code.nsnam.org/ns-3-dev |
|
119 | 15 |
mkdir build |
134 | 16 |
cd ns-3-dev |
17 |
#patch -p1 < ../the_last_test.patch |
|
18 |
./waf configure --prefix=`pwd`/../build --enable-tests |
|
119 | 19 |
./waf |
20 |
./waf install |
|
21 |
cd .. |
|
22 |
export PATH=$SAVE_PATH:`pwd`/build/bin |
|
23 |
export LD_LIBRARY_PATH=$SAVE_LDLP:`pwd`/build/lib |
|
24 |
export PKG_CONFIG_PATH=$SAVE_PKG:`pwd`/build/lib/pkgconfig |
|
25 |
cd readversiondef/ |
|
26 |
make |
|
27 |
make install PREFIX=`pwd`/../build/ |
|
28 |
cd .. |
|
29 |
cd ns-3-dce/ |
|
140
429a3d6415db
Fix in order to run using linux kernel the dce-linux sample.
frederic.urbani@inria.fr
parents:
134
diff
changeset
|
30 |
./waf configure --prefix=`pwd`/../build --enable-kernel-stack=`pwd`/../ns-3-linux --verbose |
119 | 31 |
./waf |
32 |
./waf install |
|
33 |
export LD_LIBRARY_PATH=$SAVE_LDLP:`pwd`/build/lib:`pwd`/build/bin:`pwd`/../build/lib |
|
34 |
# Configure test simulation files. |
|
35 |
mkdir -p files-0/tmp |
|
36 |
mkdir -p files-0/etc |
|
37 |
cp /etc/passwd files-0/etc |
|
38 |
echo Launch NS3TEST-DCE |
|
39 |
./build/bin/ns3test-dce --verbose |
|
40 |
||
41 |
||
42 |
||
43 |