2 # Environment setup script for Houdini.
4 # To use this script you should "cd" to the hfs directory where this
5 # script is located and "source" it into your bash shell or from your
8 # Alternatively you may copy this script, remove the first if
9 # statement and change the setting of the "HFS" variable to be
10 # the location of your installed Houdini hfs directory.
12 # Note that this script modifies your search path by inserting the
13 # Houdini bin directory at the beginning.
15 # To run the script in quiet mode, specify the "-q" option on the
18 export HFS
=/opt
/houdini
21 # The following are some handy shortcuts:
25 export HDSO
=${H}/dsolib
27 export HH
=${H}/houdini
28 export HHC
=${HH}/config
29 export HT
=${H}/toolkit
33 # The following is used as the generic /tmp path. This is also
34 # set on Windows to the temporary directory, so can be used for
35 # system independent .hip files.
42 if [ "$JAVA_HOME" = "" ]; then
45 if [ "$?" = "0" ]; then
46 export JAVA_HOME
=`echo ${d} | sed 's/\/bin.*//g'`
48 for dir
in /usr
/local /usr
/local
/java2
/usr
/local
/java
/opt
/usr
/usr
/java2
/usr
/java
; do
50 d
=$
(find $dir -maxdepth 3 -path "*/bin/java" -printf "%h\n"|
head -1 |
sed 's/\/bin//')
60 if [ "$JAVA_HOME" = "" ]; then
61 PATH
="${HB}:${HSB}:$PATH"
63 PATH
="${HB}:${HSB}:${JAVA_HOME}/bin:$PATH"
67 export HOUDINI_MAJOR_RELEASE
=11
68 export HOUDINI_MINOR_RELEASE
=0
69 export HOUDINI_BUILD_VERSION
=818
70 export HOUDINI_VERSION
=${HOUDINI_MAJOR_RELEASE}.${HOUDINI_MINOR_RELEASE}.${HOUDINI_BUILD_VERSION}
72 # Build machine related stuff
73 export HOUDINI_BUILD_KERNEL
="2.6.32-19-generic"
74 export HOUDINI_BUILD_PLATFORM
="Debian squeeze/sid"
75 export HOUDINI_BUILD_COMPILER
="4.4.3"
77 # This only applies for linux systems
78 export HOUDINI_BUILD_LIBC
="glibc 2.11.1"
81 if [ "$1" != "-q" ]; then
82 echo "The Houdini ${HOUDINI_VERSION} environment has been initialized."
87 # These environment variables are no longer supported.
89 export HIH
=${HOME}/houdini${HOUDINI_MAJOR_RELEASE}.${HOUDINI_MINOR_RELEASE}
90 # HIL=${HSITE}/houdini${HOUDINI_MAJOR_RELEASE}.$HOUDINI_MINOR_RELEASE}