Commit c8aeabfe authored by Shashi Guruprasad's avatar Shashi Guruprasad

These files download tar.gz from www.emulab.net. I've added checks in case

this fails to download that from the original location (www.postel.org
for TG and www.isi.edu for NS)
parent 978274a4
#!/bin/sh
if [ ! -d ns-allinone-2.26 ]; then
echo "Downloading ns2.26 source ..."
echo "Downloading ns2.26 source from www.emulab.net"
fetch http://www.emulab.net/ns-allinone-2.26.tar.gz
if [ $? -ne 0 ]; then
echo "Failed..."
echo "Downloading ns2.26 source from www.isi.edu"
fetch http://www.isi.edu/nsnam/dist/ns-allinone-2.26.tar.gz
fi
tar xzf ns-allinone-2.26.tar.gz
patch -p0 < nse.patch
fi
......
#!/bin/sh
# cd from <builddir>/event/trafgen to testbed/event/trafgen
if [ ! -d $1/tg2.0/src ]; then
echo "Downloading tg2.0 source to $1 ..."
echo "Downloading tg2.0 source from www.emulab.net to $1 ..."
cd $1
fetch http://www.emulab.net/tg2.0.tar.gz
#fetch http://www.postel.org/tg/tg2.0.tar.gz
if [ $? -ne 0 ]; then
echo "Failed..."
echo "Downloading tg2.0 source from www.postel.org to $1 ..."
fetch http://www.postel.org/tg/tg2.0.tar.gz
fi
echo "Unpacking/patching tg2.0 source ..."
tar xzf tg2.0.tar.gz
patch -p0 < tg.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment