blob: e8ba64887a2418480078a661eaf8230c28fad663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
#
# This script is part of the KGtk package.
#
# (C) Craig Drummond, 2007
#
# [email protected]
#
# --
# Released under the GPL v2 or later
# --
#
app=`basename $0`
if [ "$app" = "kqt3-wrapper" ] ; then
LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkqt3.so:$LD_PRELOAD "$@"
else
dir=`dirname $0`
oldPath=$PATH
PATH=`echo $PATH | sed s:$dir::g`
real=`which $app`
PATH=$oldPath
if [ "$real" != "" ] && [ "`dirname $real`" != "$dir" ] ; then
LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkqt3.so:$LD_PRELOAD $real "$@"
fi
fi
|