includemocs(1)

includemocs1

Usage

includemocs

Overview

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 .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.

On stdout commands are ouput, suitable for a shell, which, when evaluated, add the suggested '#include' at the end of the files.

On stderr some informational messages are printed.

Examples

        cd kdebase ; includemocs
        cd kdebase ; `eval includemocs 2> /dev/null`

Releases

4 releases since Debian 3.0 (Woody); the text changed 3 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0

Author

Michael Matz <[email protected]>

From kdesdk-scripts 4:3.5.9-2 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.