-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetenv.sh
executable file
·51 lines (43 loc) · 1.21 KB
/
setenv.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/ksh
# This file should be dotted before
# use of this environment.
#
# NOTYET, If the path already has the curenv
# as first entry do not re-append.
# Results/bins should also be added.
#
systemName=`uname -n`
osType=`uname -s`
case ${osType} in
'Windows_NT')
export CURENVBASE=`pwd | sed -e 's:/:\\\\\\\\:g'`
#export OPUSMAKECFG="${CURENVBASE}\\tools\\win32make.ini"
export PATH=${CURENVBASE}\\tools;${PATH}
;;
'UWIN-NT')
export CURENVBASE=`pwd`
export PATH=${CURENVBASE}/tools/bin:${PATH}
export PATH=${CURENVBASE}/tools:${PATH}
;;
'CYGWIN_NT-5.0'|'CYGWIN_NT-5.1')
export CURENVBASE=`pwd`
export PATH=${CURENVBASE}/tools/bin:${PATH}
export PATH=${CURENVBASE}/tools:${PATH}
;;
'Linux')
export CURENVBASE=`pwd`
export PATH=${CURENVBASE}/tools/bin:${PATH}
export PATH=${CURENVBASE}/tools:${PATH}
;;
'SunOS')
export CURENVBASE=`pwd`
export PATH=${CURENVBASE}/tools/bin:${PATH}
export PATH=${CURENVBASE}/tools:${PATH}
;;
esac
echo "CURENVBASE set to ${CURENVBASE}"
if [[ ! -e /bin/osmtKsh ]] ; then
echo "/bin/osmtKsh is missing."
echo "/bin/osmtKsh can be a symlink to ksh93, bash, ksh88 or pdksh."
echo "Create that symlink before proceeding further."
fi