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 c-shell or from your
8 # Alternatively you may copy this script, remove the first if
9 # statement and change the setting of the "here" 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 setenv HFS /opt/houdini
21 # The following are some handy shortcuts:
25 setenv HDSO ${H}/dsolib
27 setenv HH ${H}/houdini
28 setenv HHC ${HH}/config
29 setenv 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
44 # Use sh for this since CSH really really sucks
45 set d=`sh -c 'which java 2>&1'`
46 if ( $status == 0 ) then
47 setenv JAVA_HOME `echo $d | sed 's/\/bin.*//'`
49 foreach dir (/usr/local /usr/local/java2 /usr/local/java /opt /usr/usr/java2 /usr/java)
51 set d=`find $dir -maxdepth 3 -path "*/bin/java" -printf "%h\n" | head -1 | sed 's/\/bin//'`
52 if ( "$d" != "" ) then
61 if ( $?JAVA_HOME ) then
62 set path=(${HB} ${HSB} ${JAVA_HOME}/bin $path)
64 set path=(${HB} ${HSB} $path)
69 setenv HOUDINI_MAJOR_RELEASE 11
70 setenv HOUDINI_MINOR_RELEASE 0
71 setenv HOUDINI_BUILD_VERSION 818
72 setenv HOUDINI_VERSION ${HOUDINI_MAJOR_RELEASE}.${HOUDINI_MINOR_RELEASE}.${HOUDINI_BUILD_VERSION}
74 # Build machine related stuff
75 setenv HOUDINI_BUILD_KERNEL "2.6.32-19-generic"
76 setenv HOUDINI_BUILD_PLATFORM "Debian squeeze/sid"
77 setenv HOUDINI_BUILD_COMPILER "4.4.3"
79 # This only applies for linux systems
80 setenv HOUDINI_BUILD_LIBC "glibc 2.11.1"
82 if ( $?prompt && ( $#argv < 1 || "$1" != "-q" ) ) then
83 echo "The Houdini ${HOUDINI_VERSION} environment has been initialized."
87 # These environment variables are no longer supported.
89 setenv HIH ${HOME}/houdini${HOUDINI_MAJOR_RELEASE}.${HOUDINI_MINOR_RELEASE}
90 # setenv HIL ${HSITE}/houdini${HOUDINI_MAJOR_RELEASE}.${HOUDINI_MINOR_RELEASE}