qt -> tqt conversion:

QTDIR -> TQTDIR
QTDOC -> TQTDOC
INCDIR_QT -> INCDIR_TQT
LIBDIR_QT -> LIBDIR_TQT
QT_INC -> TQT_INC
QT_LIB -> TQT_LIB

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent fe4b336173
commit a615469e90
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -44,8 +44,8 @@ page for that class. Otherwise the main &Qt; help page is opened.
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term><envar>QTDIR</envar></term> <term><envar>TQTDIR</envar></term>
<listitem><para>The directory beneath which &Qt; is installed. The main &Qt; help page is expected to be in <filename class="directory">$<envar>QTDIR</envar>/doc/html/</filename>.</para></listitem> <listitem><para>The directory beneath which &Qt; is installed. The main &Qt; help page is expected to be in <filename class="directory">$<envar>TQTDIR</envar>/doc/html/</filename>.</para></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>

@ -256,7 +256,7 @@ and add to the end of the file:
<programlisting> <programlisting>
TDEDIR=(path to tdedir) TDEDIR=(path to tdedir)
TDEDIRS=$TDEDIR TDEDIRS=$TDEDIR
PATH=$TDEDIR/bin:$QTDIR/bin:$PATH PATH=$TDEDIR/bin:$TQTDIR/bin:$PATH
LD_LIBRARY_PATH=$TDEDIR/lib:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$TDEDIR/lib:$LD_LIBRARY_PATH
export TDEDIRS PATH LD_LIBRARY_PATH export TDEDIRS PATH LD_LIBRARY_PATH
</programlisting> </programlisting>
@ -264,13 +264,13 @@ export TDEDIRS PATH LD_LIBRARY_PATH
If you are building the qt-copy module, add instead: If you are building the qt-copy module, add instead:
<programlisting> <programlisting>
QTDIR=(path to qtdir) TQTDIR=(path to qtdir)
TDEDIR=(path to tdedir) TDEDIR=(path to tdedir)
TDEDIRS=$TDEDIR TDEDIRS=$TDEDIR
PATH=$TDEDIR/bin:$QTDIR/bin:$PATH PATH=$TDEDIR/bin:$TQTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH MANPATH=$TQTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$TDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$TDEDIR/lib:$TQTDIR/lib:$LD_LIBRARY_PATH
export QTDIR TDEDIRS PATH MANPATH LD_LIBRARY_PATH export TQTDIR TDEDIRS PATH MANPATH LD_LIBRARY_PATH
</programlisting> </programlisting>
</para> </para>
@ -420,7 +420,7 @@ source tree, you can force a rebuild of a module by creating a file called
<listitem><para> <listitem><para>
You can specify various environment values to be used during the build, You can specify various environment values to be used during the build,
including <envar>TDEDIR</envar>, <envar>QTDIR</envar>, <envar>DO_NOT_COMPILE</envar>, including <envar>TDEDIR</envar>, <envar>TQTDIR</envar>, <envar>DO_NOT_COMPILE</envar>,
and <envar>CXXFLAGS</envar>. and <envar>CXXFLAGS</envar>.
</para></listitem> </para></listitem>
@ -624,7 +624,7 @@ You can't override this setting in a module option. The default value is
<filename class="directory">/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin</filename>. This environment <filename class="directory">/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin</filename>. This environment
variable should include the colon-separated paths of your development variable should include the colon-separated paths of your development
toolchain. The paths <filename class="directory">$TDEDIR/bin</filename> and toolchain. The paths <filename class="directory">$TDEDIR/bin</filename> and
<filename class="directory">$QTDIR/bin</filename> are automatically added. You <filename class="directory">$TQTDIR/bin</filename> are automatically added. You
may use the tilde (~) for any paths you add using this option.</para> may use the tilde (~) for any paths you add using this option.</para>
</entry> </entry>
</row> </row>
@ -829,7 +829,7 @@ linkend="conf-make-install-prefix">make-install-prefix</link> option as well.</e
<entry>Set this option to set the environment variable LD_LIBRARY_PATH while <entry>Set this option to set the environment variable LD_LIBRARY_PATH while
building. You can't override this setting in a module option. The default building. You can't override this setting in a module option. The default
value is blank, but the paths <filename class="directory">$TDEDIR/lib</filename> and value is blank, but the paths <filename class="directory">$TDEDIR/lib</filename> and
<filename class="directory">$QTDIR/lib</filename> are automatically <filename class="directory">$TQTDIR/lib</filename> are automatically
added. You may use the tilde (~) for any paths you add using this option. added. You may use the tilde (~) for any paths you add using this option.
</entry> </entry>
</row> </row>
@ -930,7 +930,7 @@ can't figure out what you mean using <link linkend="conf-branch">branch</link>.
<row id="conf-qtdir"> <row id="conf-qtdir">
<entry>qtdir</entry> <entry>qtdir</entry>
<entry>Can't be overridden</entry> <entry>Can't be overridden</entry>
<entry>Set this option to set the environment variable QTDIR while building. <entry>Set this option to set the environment variable TQTDIR while building.
You can't override this setting in a module option. If you don't specify You can't override this setting in a module option. If you don't specify
this option, it defaults to this option, it defaults to
<filename class="directory"><varname>$(source-dir)</varname>/build/qt-copy</filename>, <filename class="directory"><varname>$(source-dir)</varname>/build/qt-copy</filename>,
@ -1024,7 +1024,7 @@ instead, which works from the release tarballs.</para>
qt-copy. Set this option to <quote>true</quote> to enable the script's qt-copy. Set this option to <quote>true</quote> to enable the script's
<emphasis>experimental</emphasis> srcdir != builddir mode. When enabled, <emphasis>experimental</emphasis> srcdir != builddir mode. When enabled,
&tdesvn-build; will copy the qt-copy source module to the build directory, &tdesvn-build; will copy the qt-copy source module to the build directory,
and perform builds from there. That means your QTDIR environment variable and perform builds from there. That means your TQTDIR environment variable
should be set to should be set to
<filename class="directory">$(qt-copy-build-dir)/qt-copy/lib</filename> <filename class="directory">$(qt-copy-build-dir)/qt-copy/lib</filename>
instead. You should also change your <link linkend="conf-qtdir">qtdir</link> instead. You should also change your <link linkend="conf-qtdir">qtdir</link>

@ -51,7 +51,7 @@ err_install_fail="5"
# #
err_inv_kdesrcdir="6" err_inv_kdesrcdir="6"
# The $QTDIR variable wasn't set, points to a non-existant directory or # The $TQTDIR variable wasn't set, points to a non-existant directory or
# doesn't contain a bin/, lib/, or include/ subdirectory. # doesn't contain a bin/, lib/, or include/ subdirectory.
# #
err_inv_qtdir="7" err_inv_qtdir="7"
@ -370,7 +370,7 @@ if [ "$dousage" -eq 1 ]; then
fi fi
# Expand ~ # Expand ~
QTDIR=`echo "$QTDIR" | sed -e "s,^\~/,$HOME/,"` TQTDIR=`echo "$TQTDIR" | sed -e "s,^\~/,$HOME/,"`
KDESRCDIR=`echo "$KDESRCDIR" | sed -e "s,^\~/,$HOME/,"` KDESRCDIR=`echo "$KDESRCDIR" | sed -e "s,^\~/,$HOME/,"`
KDEBUILDDIR=`echo "$KDEBUILDDIR" |sed -e "s,^\~/,$HOME/,"` KDEBUILDDIR=`echo "$KDEBUILDDIR" |sed -e "s,^\~/,$HOME/,"`
TDEDIRS=`echo "$TDEDIRS" |sed -e "s,^\~/,$HOME/,"` TDEDIRS=`echo "$TDEDIRS" |sed -e "s,^\~/,$HOME/,"`
@ -378,9 +378,9 @@ KDELOGDIR=`echo "$KDELOGDIR" |sed -e "s,^\~/,$HOME/,"`
# Make sure some paths are according to the rc file. Note that there are AFAIK # Make sure some paths are according to the rc file. Note that there are AFAIK
# UNIX flavors which don't support LD_LIBRARY_PATH # UNIX flavors which don't support LD_LIBRARY_PATH
PATH=$QTDIR/bin:$TDEDIRS/bin:$PATH PATH=$TQTDIR/bin:$TDEDIRS/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH MANPATH=$TQTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$TDEDIRS/lib:$QTDIR/lib:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$TDEDIRS/lib:$TQTDIR/lib:$LD_LIBRARY_PATH
if [ -n "$USE_UNSERMAKE" ]; then if [ -n "$USE_UNSERMAKE" ]; then
if [ -n "$MAKE" ]; then if [ -n "$MAKE" ]; then
@ -445,7 +445,7 @@ fi
if [ ! -d "$KDESRCDIR" ]; then if [ ! -d "$KDESRCDIR" ]; then
echo "ERROR: Invalid source directory specified!"; exit $err_inv_kdesrcdir echo "ERROR: Invalid source directory specified!"; exit $err_inv_kdesrcdir
fi fi
if [ ! -d "$QTDIR" -o ! -d "$QTDIR/lib" -o ! -d "$QTDIR/bin" -o ! -d "$QTDIR/include" ]; then if [ ! -d "$TQTDIR" -o ! -d "$TQTDIR/lib" -o ! -d "$TQTDIR/bin" -o ! -d "$TQTDIR/include" ]; then
echo "ERROR: Invalid Qt directory specified!"; exit $err_inv_qtdir echo "ERROR: Invalid Qt directory specified!"; exit $err_inv_qtdir
fi fi
@ -678,9 +678,9 @@ for module in $modules; do
echo -n " Configuring..." echo -n " Configuring..."
set_title "Configuring module $module..." set_title "Configuring module $module..."
if [ -n "$KDEBUILDDIR" ]; then if [ -n "$KDEBUILDDIR" ]; then
cmd_configure="$KDESRCDIR/$module/configure $CONFIGUREFLAGS --with-qt-dir=$QTDIR" cmd_configure="$KDESRCDIR/$module/configure $CONFIGUREFLAGS --with-qt-dir=$TQTDIR"
else else
cmd_configure="./configure $CONFIGUREFLAGS --with-qt-dir=$QTDIR" cmd_configure="./configure $CONFIGUREFLAGS --with-qt-dir=$TQTDIR"
fi fi
if echo $CONFIGUREFLAGS | grep -v -- "--prefix=" 2>/dev/null >/dev/null; then if echo $CONFIGUREFLAGS | grep -v -- "--prefix=" 2>/dev/null >/dev/null; then
cmd_configure="$cmd_configure --prefix=$TDEDIRS" cmd_configure="$cmd_configure --prefix=$TDEDIRS"

@ -18,7 +18,7 @@ TDEDIRS="/opt/kde"
# Where is your Qt 3.3.x? # Where is your Qt 3.3.x?
# #
QTDIR="/usr/lib/qt3" TQTDIR="/usr/lib/qt3"
# Should kppp be used to connect to the internet? # Should kppp be used to connect to the internet?
# #

@ -13,8 +13,8 @@ set suffixes+=.lo,.o,.moc,.la,.closure,.loT
" Search for headers here " Search for headers here
set path=.,/usr/include,/usr/local/include, set path=.,/usr/include,/usr/local/include,
if $QTDIR != '' if $TQTDIR != ''
let &path = &path . $QTDIR . '/include/,' let &path = &path . $TQTDIR . '/include/,'
endif endif
if $TDEDIR != '' if $TDEDIR != ''
let &path = &path . $TDEDIR . '/include/,' let &path = &path . $TDEDIR . '/include/,'

@ -865,14 +865,14 @@ This function does not do any hidden buffer changes."
(defun qt-open-header () (defun qt-open-header ()
"Open the Qt header file for the class under point" "Open the Qt header file for the class under point"
(interactive) (interactive)
(let* ((qtinc (concat (getenv "QTDIR") "/include/")) (let* ((qtinc (concat (getenv "TQTDIR") "/include/"))
(class (thing-at-point 'word)) (class (thing-at-point 'word))
(f nil) (f nil)
(file nil) (file nil)
(files nil) (files nil)
) )
(save-excursion (save-excursion
; The Qt3 case: the includes are directly in $QTDIR/include/, lowercased ; The Qt3 case: the includes are directly in $TQTDIR/include/, lowercased
(set f (concat qtinc (downcase class) ".h" )) (set f (concat qtinc (downcase class) ".h" ))
(if (file-readable-p f) (if (file-readable-p f)
(set file f) (set file f)
@ -880,7 +880,7 @@ This function does not do any hidden buffer changes."
(set f (concat qtinc (downcase class) "_qws.h" )) (set f (concat qtinc (downcase class) "_qws.h" ))
(if (file-readable-p f) (if (file-readable-p f)
(set file f) (set file f)
; The Qt4 case: the includes are in $QTDIR/include/QSomething/, in original case ; The Qt4 case: the includes are in $TQTDIR/include/QSomething/, in original case
(set files (directory-files qtinc t nil "dirsonly")) (set files (directory-files qtinc t nil "dirsonly"))
(dolist (f files nil) (dolist (f files nil)
(if (file-readable-p (concat f "/" class) ) (if (file-readable-p (concat f "/" class) )

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
if [ -z "$QTDIR" ]; then if [ -z "$TQTDIR" ]; then
QTDIR=/usr/share/qt3 TQTDIR=/usr/share/qt3
fi fi
# Run from command line, to open a qt help page in kfm/konqueror # Run from command line, to open a qt help page in kfm/konqueror
@ -10,8 +10,8 @@ fi
if [ $# = 1 ]; then if [ $# = 1 ]; then
fname=`echo $1 | tr '[A-Z]' '[a-z]'` fname=`echo $1 | tr '[A-Z]' '[a-z]'`
if [ -f $QTDIR/doc/html/$fname.html ]; then if [ -f $TQTDIR/doc/html/$fname.html ]; then
tdeinit_wrapper kfmclient openProfile webbrowsing file:$QTDIR/doc/html/$fname.html tdeinit_wrapper kfmclient openProfile webbrowsing file:$TQTDIR/doc/html/$fname.html
else else
if [ -f /usr/doc/qt2/html/$fname.html ]; then if [ -f /usr/doc/qt2/html/$fname.html ]; then
tdeinit_wrapper kfmclient openProfile webbrowsing file:/usr/doc/qt2/html/$fname.html tdeinit_wrapper kfmclient openProfile webbrowsing file:/usr/doc/qt2/html/$fname.html
@ -20,5 +20,5 @@ if [ $# = 1 ]; then
fi fi
fi fi
else else
kfmclient openURL file:$QTDIR/doc/html/index.html kfmclient openURL file:$TQTDIR/doc/html/index.html
fi fi

@ -3434,7 +3434,7 @@ sub update_module_environment
# Set up the children's environment. We use setenv since it # Set up the children's environment. We use setenv since it
# won't set an environment variable to nothing. (e.g, setting # won't set an environment variable to nothing. (e.g, setting
# QTDIR to a blank string might confuse Qt or KDE. # TQTDIR to a blank string might confuse Qt or KDE.
# Remove leading and trailing colons, just in case. # Remove leading and trailing colons, just in case.
# Also remove more than one colon. # Also remove more than one colon.
@ -3462,7 +3462,7 @@ sub update_module_environment
setenv ('LD_LIBRARY_PATH', $libdir); setenv ('LD_LIBRARY_PATH', $libdir);
setenv ('PATH', $path); setenv ('PATH', $path);
setenv ('TDEDIR', $tdedir); setenv ('TDEDIR', $tdedir);
setenv ('QTDIR', $qtdir); setenv ('TQTDIR', $qtdir);
# Qt has several defines of its own. Special case qt-copy for this # Qt has several defines of its own. Special case qt-copy for this
# reason. # reason.
@ -3579,7 +3579,7 @@ sub build_module
$qtpath =~ s/$ENV{HOME}/~/; $qtpath =~ s/$ENV{HOME}/~/;
warning <<EOF; warning <<EOF;
b[y[!!] You're building qt-copy, but QTDIR isn't set to use qt-copy! b[y[!!] You're building qt-copy, but TQTDIR isn't set to use qt-copy!
b[y[!!] Please set your qtdir variable in the global section of your b[y[!!] Please set your qtdir variable in the global section of your
b[y[!!] $rcfile to g[$qtpath] b[y[!!] $rcfile to g[$qtpath]

Loading…
Cancel
Save