forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdtool.sh
More file actions
executable file
·81 lines (72 loc) · 2.09 KB
/
dtool.sh
File metadata and controls
executable file
·81 lines (72 loc) · 2.09 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#! /bin/sh
OS=`uname`
export OS
# Setup the initial path
if [ $OS = "Linux" ]; then
PATH=/var/local/bin:~/bin:.:/usr/sbin:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/etc:/usr/local/bin
elif [ $OS = "IRIX64" ]; then
PATH=/var/local/bin:/usr/local/bin/ptools:~/bin:/usr/local/prman/bin:.:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/etc:/usr/demos/bin:/usr/local/bin
elif [ $OS = "CYGWIN_98-4.10" ]; then
PATH=/usr/local/bin:/bin:/CYGNUS/CYGWIN~1/H-I586~1/BIN:/WINDOWS:/WINDOWS:/WINDOWS/COMMAND:/DMI/BIN:/KATANA/UTL/DEV/MAKE:/KATANA/UTL/DEV/HITACHI
else
PATH=/var/local/bin:/usr/local/bin/ptools:~/bin:/usr/local/prman/bin:.:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/etc:/usr/demos/bin:/usr/local/bin
fi
# Setup the initial manpath
#if [ $OS = "Linux" ]; then
# MANPATH=/usr/local/man:/usr/man/preformat:/usr/man:/usr/X11R6/man
#elif [ $OS = "IRIX64" ]; then
# MANPATH=/usr/share/catman:/usr/catman:/usr/local/share/catman:/usr/local/share/man:/usr/local/man
#elif [ $OS = "CYGWIN_98-4.10" ]; then
# MANPATH=/usr/local/man
#else
# MANPATH=/usr/share/catman:/usr/catman:/usr/local/share/catman:/usr/local/share/man:/usr/local/man
#fi
#export MANPATH
LD_LIBRARY_PATH="."
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH="."
export DYLD_LIBRARY_PATH
CT_INCLUDE_PATH="."
export CT_INCLUDE_PATH
#cdpath=.
#CDPATH="."
#export CDPATH
DC_PATH="."
export DC_PATH
SSPATH="."
export SSPATH
STKPATH="."
export STKPATH
SHELL_TYPE="sh"
export SHELL_TYPE
if [ -e /usr/atria ]; then
if /usr/atria/bin/cleartool mount -all > /dev/null 2>&1; then
HAVE_ATRIA=yes
export HAVE_ATRIA
fi
fi
if [ -z "$CTDEFAULT_FLAV" ]; then
CTDEFAULT_FLAV="default"
export CTDEFAULT_FLAV
fi
if [ -z "$DTOOL" ]; then
DTOOL=/beta/player/bootstrap/tool
export DTOOL
fi
if [ -z "$PENV" ]; then
if [ $OS = "Linux" ]; then
PENV="Linux"
elif [ $OS = "IRIX64" ]; then
PENV="SGI"
elif [ $OS = "CYGWIN_98-4.10" ]; then
PENV="WIN32_DREAMCAST"
else
PENV="SGI"
fi
fi
export PENV
if [ -z "$1" ]; then
source `$DTOOL/built/bin/ctattach.drv dtool default`
else
source `$DTOOL/built/bin/ctattach.drv dtool $1`
fi