Statistics
| Branch: | Revision:

root / setenv @ master

History | View | Annotate | Download (485 Bytes)

1 01873262 Georg Kunz
#! /bin/sh
2
3
case "$-" in
4
*i*) ;;
5
*)  echo "Error: not a login shell -- run this script as 'source setenv' or '. setenv'"
6
    exit 1
7
esac
8
9
if [ ! -f configure.user -o ! -f include/omnetpp.h ]; then
10
    echo "Error: current working directory does not look like an OMNeT++ root directory"
11
    # no exit -- it would close the shell
12
else
13
    omnetpp_root=`pwd`
14
    echo $omnetpp_root
15
    export PATH=$omnetpp_root/bin:$PATH
16
    export LD_LIBRARY_PATH=$omnetpp_root/lib:$LD_LIBRARY_PATH
17
fi