#!/bin/sh

# Copyright (C) 2007 Arthur Henrique Penteado Furlan <arthur.furlan@gmail.com>
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# On Debian systems, you can find the full text of the license in
# /usr/share/common-licenses/GPL-2

# set the installation BASEPATH
NS_PATH="XXXX"
BASEPATH=$NS_PATH/ns-allinone-2.30

# set the libraries path
OTCL_LIB=$BASEPATH/otcl-1.12
NS2_LIB=$BASEPATH/lib
X11_LIB=/usr/X11R6/lib
USR_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LIB

# set the TCL path
TCL_LIB=$BASEPATH/tcl8.4.13/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# add the ns-2 apps (ns, nam and setdest) to the path
XGRAPH=$BASEPATH/bin:$BASEPATH/tcl8.4.13/unix:$BASEPATH/tk8.4.13/unix
NS=$BASEPATH/ns-2.30
NAM=$BASEPATH/nam-1.12
SETDEST=$BASEPATH/ns-2.30/indep-utils/cmu-scen-gen/setdest
PATH=$PATH:$XGRAPH:$NS:$NAM:$SETDEST
export PATH
