svn merge -r41266:41287 ^/trunk/blender
[blender.git] / release / bin / blender-softwaregl
1 #!/bin/sh
2 BF_DIST_BIN=`dirname "$0"`
3 BF_PROGRAM="blender" # BF_PROGRAM=`basename "$0"`-bin
4 exitcode=0
5
6 LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
7
8 if [ -n "$LD_LIBRARYN32_PATH" ]; then
9     LD_LIBRARYN32_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN32_PATH}
10 fi
11 if [ -n "$LD_LIBRARYN64_PATH" ]; then
12     LD_LIBRARYN64_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN64_PATH}
13 fi
14 if [ -n "$LD_LIBRARY_PATH_64" ]; then
15     LD_LIBRARY_PATH_64=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH_64}
16 fi
17
18 export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD
19
20 "$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}
21 exitcode=$?
22 exit $exitcode