updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / houdini / houdini.csh
blobc92b00a1a6d401b59e1c57bb07cb552df35b89cd
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
6 #   .login script.
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
16 #   command line.
18 setenv HFS      /opt/houdini
21 #  The following are some handy shortcuts:
23 setenv H        ${HFS}
24 setenv HB       ${H}/bin
25 setenv HDSO     ${H}/dsolib
26 setenv HD       ${H}/demo
27 setenv HH       ${H}/houdini
28 setenv HHC      ${HH}/config
29 setenv HT   ${H}/toolkit
30 setenv 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 setenv TEMP /tmp
40 # Look for java.
42 if ( ! $?JAVA_HOME ) then
43     # Check in PATH first
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.*//'`
48     else
49         foreach dir (/usr/local /usr/local/java2 /usr/local/java /opt /usr/usr/java2 /usr/java)
50             if ( -d $dir ) then
51                 set d=`find $dir -maxdepth 3 -path "*/bin/java" -printf "%h\n" | head -1 | sed 's/\/bin//'`
52                 if ( "$d" != "" ) then
53                     setenv JAVA_HOME $d
54                     break
55                 endif
56             endif
57         end
58     endif
59 endif
61 if ( $?JAVA_HOME ) then
62         set path=(${HB} ${HSB} ${JAVA_HOME}/bin $path)
63 else
64         set path=(${HB} ${HSB} $path)
65 endif
67 rehash
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."
84 endif
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}
91 setenv HIS      $HH
92 endif