2 # libwrap - run a command with the specified library paths
3 # Parameters: path_to_library command_to_run command_parameters
5 # This was written to help run the OpenAFS test suite.
15 # Linux, HP-UX (64bit), Solaris, BSD
16 if [ -z "$LD_LIBRARY_PATH" ] ; then
17 LD_LIBRARY_PATH
="$NEWLIB_PATH"
19 LD_LIBRARY_PATH
="$NEWLIB_PATH:$LD_LIBRARY_PATH"
21 export LD_LIBRARY_PATH
24 if [ -z "$DYLD_LIBRARY_PATH" ] ; then
25 DYLD_LIBRARY_PATH
="$NEWLIB_PATH"
27 DYLD_LIBRARY_PATH
="$NEWLIB_PATH:$DYLD_LIBRARY_PATH"
29 export DYLD_LIBRARY_PATH
32 if [ -z "$SHLIB_PATH" ] ; then
33 SHLIB_PATH
="$NEWLIB_PATH"
35 SHLIB_PATH
="$NEWLIB_PATH:$SHLIB_PATH"
40 if [ -z "$LIBPATH" ] ; then
41 LIBPATH
="$NEWLIB_PATH"
43 LIBPATH
="$NEWLIB_PATH:$LIBPATH"
48 exec "$TEST_COMMAND" "$@"