summaryrefslogtreecommitdiffstats
path: root/redhat/tqt3/qt.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-02-13 22:56:37 +0100
committerFrancois Andriot <francois.andriot@free.fr>2012-02-13 22:56:37 +0100
commit14dfc7ec02c0f331342d8becac217b781b5feadf (patch)
tree11e36a7fbc9408fcd91d045f58892300d37a8b47 /redhat/tqt3/qt.sh
parente52e723d608adb3227f17cc07ca39e0a84002f89 (diff)
downloadtde-packaging-14dfc7ec02c0f331342d8becac217b781b5feadf.tar.gz
tde-packaging-14dfc7ec02c0f331342d8becac217b781b5feadf.zip
[RHEL/Fedora] add TQT3 for future R14
Diffstat (limited to 'redhat/tqt3/qt.sh')
-rwxr-xr-xredhat/tqt3/qt.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/redhat/tqt3/qt.sh b/redhat/tqt3/qt.sh
new file mode 100755
index 000000000..88b3e0cea
--- /dev/null
+++ b/redhat/tqt3/qt.sh
@@ -0,0 +1,32 @@
+# Qt initialization script (sh)
+
+# In multilib environments there is a preferred architecture, 64 bit over 32 bit in x86_64,
+# When a conflict is found between two packages corresponding with different arches,
+# the installed file is the one from the preferred arch. This is very common for executables
+# in /usr/bin, for example. If the file /usr/bin/foo is found in an x86_64 package and in an
+# i386 package, the executable from x86_64 will be installe
+
+if [ -z "${QTDIR}" ]; then
+
+case `uname -m` in
+ x86_64 | ia64 | s390x | ppc64 )
+ QT_PREFIXES="/usr/lib64/qt-3.3 /usr/lib/qt-3.3" ;;
+ * )
+ QT_PREFIXES="/usr/lib/qt-3.3 /usr/lib64/qt-3.3" ;;
+esac
+
+for QTDIR in ${QT_PREFIXES} ; do
+ test -d "${QTDIR}" && break
+done
+unset QT_PREFIXES
+
+if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then
+ PATH=$QTDIR/bin:${PATH}
+fi
+
+QTINC="$QTDIR/include"
+QTLIB="$QTDIR/lib"
+
+export QTDIR QTINC QTLIB PATH
+
+fi