updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / houdini / houdini.sh
blobda618d9762ef06301245b1638f45869a470921ef
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
6 # .profile script.
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
16 # command line.
18 export HFS=/opt/houdini
21 # The following are some handy shortcuts:
23 export H=${HFS}
24 export HB=${H}/bin
25 export HDSO=${H}/dsolib
26 export HD=${H}/demo
27 export HH=${H}/houdini
28 export HHC=${HH}/config
29 export HT=${H}/toolkit
30 export HSB=${HH}/sbin
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.
37 export TEMP=/tmp
40 # Look for java.
42 if [ "$JAVA_HOME" = "" ]; then
43 # Check in PATH first
44 d=$(which java 2>&1)
45 if [ "$?" = "0" ]; then
46 export JAVA_HOME=`echo ${d} | sed 's/\/bin.*//g'`
47 else
48 for dir in /usr/local /usr/local/java2 /usr/local/java /opt /usr /usr/java2 /usr/java; do
49 if [ -d $dir ]; then
50 d=$(find $dir -maxdepth 3 -path "*/bin/java" -printf "%h\n"| head -1 | sed 's/\/bin//')
51 if [ $d ]; then
52 export JAVA_HOME=$d
53 break
56 done
60 if [ "$JAVA_HOME" = "" ]; then
61 PATH="${HB}:${HSB}:$PATH"
62 else
63 PATH="${HB}:${HSB}:${JAVA_HOME}/bin:$PATH"
65 export 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"
80 if [ $?prompt ]; then
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}
91 export HIS=$HH