qt/qt4-wrapper.sh
Kevin Kofler ce3061addb Upgrade to Qt 4:
remove Qt 3 files
copy Qt 4 from qt4/devel
Wed Mar 12 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.3.4-6
- rename to qt on Fedora >= 9
2008-03-12 23:38:15 +00:00

16 lines
397 B
Bash
Executable File

#!/bin/bash
if [ -z "$QT4DIR" ] ; then
# rpm is more correct multilib-wise, provided /etc/rpm/platform doesn't get in the way.
QT4DIR="$(/bin/rpm --eval "%{_libdir}/qt4" 2>/dev/null || /usr/bin/pkg-config --variable=prefix QtCore )"
export QT4DIR
fi
if ! echo ${PATH} | /bin/grep -q $QT4DIR/bin ; then
PATH=${QT4DIR}/bin:${PATH}
export PATH
fi
exec $QT4DIR/bin/`basename $0` ${1+"$@"}