summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqt3/qt.csh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-02-16 19:43:47 +0100
committerFrancois Andriot <francois.andriot@free.fr>2012-02-16 19:43:47 +0100
commit5c0bbe731541c633c114f2f31fb38a68b370e18f (patch)
tree4e0b0fadb73869604ad521cc7b4cd83c635e247f /redhat/dependencies/tqt3/qt.csh
parent4a3f0ef6b92d4a30e310be5912896ca9bfd0f3c5 (diff)
downloadtde-packaging-5c0bbe731541c633c114f2f31fb38a68b370e18f.tar.gz
tde-packaging-5c0bbe731541c633c114f2f31fb38a68b370e18f.zip
[RHEL/Fedora] Moves qt3 and tqt3 to the correct location
Diffstat (limited to 'redhat/dependencies/tqt3/qt.csh')
-rwxr-xr-xredhat/dependencies/tqt3/qt.csh34
1 files changed, 34 insertions, 0 deletions
diff --git a/redhat/dependencies/tqt3/qt.csh b/redhat/dependencies/tqt3/qt.csh
new file mode 100755
index 000000000..7efcd89c5
--- /dev/null
+++ b/redhat/dependencies/tqt3/qt.csh
@@ -0,0 +1,34 @@
+# Qt initialization script (csh)
+
+# 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 ( $?QTDIR ) then
+ exit
+endif
+
+switch (`uname -m`)
+ case x86_64:
+ case ia64:
+ case s390x:
+ case ppc64:
+ set QTPREFIXES = "/usr/lib64/qt-3.3 /usr/lib/qt-3.3"
+ breaksw
+ case *:
+ set QTPREFIXES = "/usr/lib/qt-3.3 /usr/lib64/qt-3.3"
+endsw
+
+foreach QTPREFIX ( $QTPREFIXES )
+ test -d "$QTPREFIX" && setenv QTDIR $QTPREFIX && break
+end
+unset QTPREFIX QTPREFIXES
+
+if ( "${path}" !~ *$QTDIR/bin* ) then
+ set path = ( $QTDIR/bin $path )
+endif
+
+setenv QTINC $QTDIR/include
+setenv QTLIB $QTDIR/lib