summaryrefslogtreecommitdiff
path: root/extra/source/kde3-compat/qt3/profile.d/qt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/kde3-compat/qt3/profile.d/qt.sh')
-rwxr-xr-xextra/source/kde3-compat/qt3/profile.d/qt.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/source/kde3-compat/qt3/profile.d/qt.sh b/extra/source/kde3-compat/qt3/profile.d/qt.sh
new file mode 100755
index 00000000..c4e23bb5
--- /dev/null
+++ b/extra/source/kde3-compat/qt3/profile.d/qt.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d /opt/kde3/lib/qt3 ]; then
+ QTDIR=/opt/kde3/lib/qt3
+else
+ # Find the newest Qt directory and set $QTDIR to that:
+ for qtd in /opt/kde3/lib/qt-* ; do
+ if [ -d $qtd ]; then
+ QTDIR=$qtd
+ fi
+ done
+fi
+if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
+ CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH
+else
+ CPLUS_INCLUDE_PATH=$QTDIR/include
+fi
+PATH="$PATH:$QTDIR/bin:/opt/kde3/bin"
+export QTDIR
+export CPLUS_INCLUDE_PATH