KDE/kdepimlibs/kabc/kab

Laurent Montel montel at kde.org
Fri Jul 21 08:43:03 CEST 2006


On Thursday 20 July 2006 20:47, Allen Winter wrote:
> On Thursday 20 July 2006 11:12, Laurent Montel wrote:
> > On Thursday 20 July 2006 15:30, Allen Winter wrote:
> > > On Thursday 20 July 2006 09:22, Laurent Montel wrote:
> > > > SVN commit 564561 by mlaurent:
> > > >
> > > > bin->${BIN_INSTALL_DIR}
> > >
> > > Laurent,
> > >
> > > These kind of fixes imply that we need a "lint" for CMakeLists.txt.
> >
> > a "lint" ?
> > what means 'lint' ?
>
> From the lint man page:
> "The lint utility attempts to detect features of the named C program files
> that are likely to be bugs, to be non-portable, or to be wasteful.  It
> also performs stricter type checking than does the C compiler. "

ok thanks for info

> > > Do you have a script that you are running to find these problems?
> > > Should we write one?
> >
> > Just it. Not perfect I think but now all is fixed.
> >
> > find -name CMakeLists.txt | xargs grep -l " DESTINATION bin"  | xargs
> > perl -pi -e 's! DESTINATION bin! DESTINATION \${BIN_INSTALL_DIR}!
>
> Attached is an initial attempt at a 'cmakelint' command.  If we make it
> much better we could put it in kdesdk/scripts.  Let me know about other
> things to check for in CMakeLists.txt files and I will add it to the
> program. If you think this is useful.
>
> -Allen

You made some typo:
    $issues += &checkLine($line,$linecnt,
			  'DESTINATION[[:space:]]lib[[:space:]]*\)',
			  'replace "bin" with "${LIB_INSTALL_DIR}"');
----------------------------------^ "lib" I think

    $issues += &checkLine($line,$linecnt,
			  'DESTINATION[[:space:]]include[[:space:]]*\)',
			  'replace "bin" with "${INCLUDE_INSTALL_DIR}"');

-----------------------------------^ "include" I think

Perhaps add     $issues += &checkLine($line,$linecnt,
			  'DESTINATION[[:space:]]share/*\)',
			  'replace "share/" with "${DATA_INSTALL_DIR}"');

Regards


More information about the Kde-buildsystem mailing list