# HG changeset patch # User Bart vdr. Meulen # Date 1249224343 -7200 # Node ID 7e7290acccc18d28d37ca9ad2d1ccb89a3b0c4f3 # Parent f04c7879f3c2d38cc4aa317532c24395fc0e760a fix wrapper script for symlinks The wrapper script placed around the target binaries when using the companion libraries does not work for symbolic links The wrapper scripts needs to follow the links before calling the actual binary Signed-off-by: Bart vdr. Meulen --- diff -r f04c7879f3c2 -r 7e7290acccc1 scripts/wrapper.in --- a/scripts/wrapper.in Sun Aug 02 16:45:33 2009 +0200 +++ b/scripts/wrapper.in Sun Aug 02 16:45:43 2009 +0200 @@ -1,7 +1,8 @@ #!/bin/sh -dirname="$(dirname "${0}")" -basename="$(basename "${0}")" +canonicalizedname=$(readlink -nm "${0}") +dirname="$(dirname "${canonicalizedname}")" +basename="$(basename "${canonicalizedname}")" ld_lib_path="$(dirname "${dirname}")/lib"