-
Notifications
You must be signed in to change notification settings - Fork 1
/
setenv
executable file
·29 lines (26 loc) · 965 Bytes
/
setenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
case "$-" in
*i*) ;;
*) if [ "$1" != "-f" ]; then # allow use from scripts, as ". setenv -f"
echo "Error: not a login shell -- run this script as 'source setenv' or '. setenv'"
exit 1
fi
esac
if [ ! -f configure.user -o ! -f include/omnetpp.h ]; then
echo "Error: current working directory does not look like an OMNeT++ root directory"
# no exit -- it would close the shell
else
omnetpp_root=`pwd`
echo $omnetpp_root
if [ `uname` = "Darwin" ]; then
if [ ! -d $omnetpp_root/tools/macosx ]; then
echo "WARNING! We are on Mac OS X, but it seems that you have downloaded the Linux version of the installation package!"
fi
export PATH=$omnetpp_root/tools/macosx/bin:$PATH
export QT_PLUGIN_PATH=$omnetpp_root/tools/macosx/plugins
fi
export PATH=$omnetpp_root/bin:$PATH
export HOSTNAME
export HOST
export QT_SELECT=5 # on systems with qtchooser, switch to Qt5
fi