summaryrefslogtreecommitdiffstats
path: root/extra/source/kde3-compat/qt3/profile.d/qt.csh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/kde3-compat/qt3/profile.d/qt.csh')
-rwxr-xr-xextra/source/kde3-compat/qt3/profile.d/qt.csh22
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/source/kde3-compat/qt3/profile.d/qt.csh b/extra/source/kde3-compat/qt3/profile.d/qt.csh
new file mode 100755
index 000000000..490877c4f
--- /dev/null
+++ b/extra/source/kde3-compat/qt3/profile.d/qt.csh
@@ -0,0 +1,22 @@
+#!/bin/csh
+# Environment path variables for the Qt package:
+if ( ! $?QTDIR ) then
+ # It's best to use the generic directory to avoid
+ # compiling in a version-containing path:
+ if ( -d /opt/kde3/lib/qt3 ) then
+ setenv QTDIR /opt/kde3/lib/qt3
+ else
+ # Find the newest Qt directory and set $QTDIR to that:
+ foreach qtd ( /opt/kde3/lib/qt-* )
+ if ( -d $qtd ) then
+ setenv QTDIR $qtd
+ endif
+ end
+ endif
+endif
+set path = ( $path $QTDIR/bin /opt/kde3/bin )
+if ( $?CPLUS_INCLUDE_PATH ) then
+ setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH
+else
+ setenv CPLUS_INCLUDE_PATH $QTDIR/include
+endif