patch [#37229] Save process slot in blender-softwaregl script
authorCampbell Barton <ideasman42@gmail.com>
Mon, 28 Oct 2013 23:48:53 +0000 (23:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 28 Oct 2013 23:48:53 +0000 (23:48 +0000)
from Lawrence D'Oliveiro (ldo)

release/bin/blender-softwaregl

index 970a787076025085eb594cae831a18d4b26963ef..8628dca220270edd323c5ae3f18c966171095e11 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/sh
-BF_DIST_BIN=`dirname "$0"`
-BF_PROGRAM="blender" # BF_PROGRAM=`basename "$0"`-bin
-exitcode=0
+BF_DIST_BIN=$(dirname "$0")
+BF_PROGRAM="blender" # BF_PROGRAM=$(basename "$0")-bin
 
 LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
 
@@ -20,6 +19,4 @@ XLIB_SKIP_ARGB_VISUALS=1
 
 export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD XLIB_SKIP_ARGB_VISUALS
 
-"$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}
-exitcode=$?
-exit $exitcode
+exec "$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}