scripts/wrapper.in
changeset 2381 0ca0f85a4b2a
parent 2380 40fe96dff39e
child 2382 cbd07f3dd6e3
     1.1 --- a/scripts/wrapper.in	Wed Apr 06 21:34:22 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -#!/bin/sh
     1.5 -
     1.6 -# this wrapper will not work under BSD systems or others
     1.7 -# not containig the GNU readlink.
     1.8 -# Under those, wrapper.c will forcibly be used
     1.9 -# regardless of the config file setting.
    1.10 -
    1.11 -canonicalizedname=$(readlink -nm "${0}")
    1.12 -dirname="$(dirname "${canonicalizedname}")"
    1.13 -basename="$(basename "${canonicalizedname}")"
    1.14 -
    1.15 -ld_lib_path="$(dirname "${dirname}")/lib"
    1.16 -
    1.17 -case ":${LD_LIBRARY_PATH}:" in
    1.18 -    *":${ld_lib_path}:"*)   ;;
    1.19 -    *)  LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
    1.20 -esac
    1.21 -
    1.22 -export LD_LIBRARY_PATH
    1.23 -exec "${dirname}/.${basename}" "$@"