summaryrefslogtreecommitdiffstats
path: root/scripts/includemocs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/includemocs')
-rwxr-xr-xscripts/includemocs18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/includemocs b/scripts/includemocs
index e18325c3..2ff30a55 100755
--- a/scripts/includemocs
+++ b/scripts/includemocs
@@ -32,7 +32,7 @@ sub checkdir($)
my $srcs=$dir2files{$dir}->{sources};
foreach my $h (keys %$hdrs) {
(my $name=$h) =~ s/\.[^.]+$//;
- my @answer = `grep -l "^#include[ ]*.$name\.tqmoc." $cppFiles 2> /dev/null`;
+ my @answer = `grep -l "^#include[ ]*.$name\.moc." $cppFiles 2> /dev/null`;
if (@answer == 0) {
my $s;
foreach my $e (split(/\s+/, $cppExt)) {
@@ -42,7 +42,7 @@ sub checkdir($)
}
if ($s) {
print "echo >> $s ;\n";
- print "echo '#include \"$name.tqmoc\"' >> $s ;\n";
+ print "echo '#include \"$name.moc\"' >> $s ;\n";
} else {
print "echo \"can't guess a C++ file for $dir/$h\" ;\n";
}
@@ -63,23 +63,23 @@ foreach my $k (keys %dir2files) {
=head1 NAME
-includetqmocs -- handle tqmocifyable headers, whose .tqmoc file is nowhere included.
+includemocs -- handle mocifyable headers, whose .moc file is nowhere included.
=head1 SYNOPSIS
- includetqmocs
+ includemocs
=head1 DESCRIPTION
-Header files declaring a QObject descendant have to be run through tqmoc to
-produce a .tqmoc file. This .tqmoc file has to be compiled, for which two
+Header files declaring a QObject descendant have to be run through moc to
+produce a .moc file. This .moc file has to be compiled, for which two
possibilities exists: compile it separately, or #include it in the C++ file
implementing that above mentioned class. The latter is more efficient in term
of compilation speed.
This script searches in the current directory and its subdirs for header files
declaring a QObject descendant class. If it finds some, it looks, if there is
-a C++ file containing an '#include' for the generated .tqmoc file. If thats not
+a C++ file containing an '#include' for the generated .moc file. If thats not
the case, it tries to guess into which C++ file that '#include' is placed best
(based on the filename). If it fails to guess a proper place, it mentions
that.
@@ -91,8 +91,8 @@ On stderr some informational messages are printed.
=head1 EXAMPLES
- cd tdebase ; includetqmocs
- cd tdebase ; `eval includetqmocs 2> /dev/null`
+ cd tdebase ; includemocs
+ cd tdebase ; `eval includemocs 2> /dev/null`
=head1 AUTHOR