debian/0000755000000000000000000000000011737031640007170 5ustar debian/source/0000755000000000000000000000000011735333753010500 5ustar debian/source/format0000644000000000000000000000001411735333753011706 0ustar 3.0 (quilt) debian/stamp-makefile-install0000644000000000000000000000000011735332620013444 0ustar debian/compat0000644000000000000000000000000211735334465010377 0ustar 8 debian/get-orig-source0000644000000000000000000000100711735332463012131 0ustar #! /bin/sh set -e #set -x VERSION=1.0.0 VER_PATCH=`dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d- | cut -f2 -d~` DATE=`echo $VER_PATCH | sed -e 's/^.*cvs//g'` cvsdirname=`pwd` dirname=kwstyle-${VERSION}+cvs${DATE}.orig tarname=kwstyle_${VERSION}+cvs${DATE}.orig.tar.gz cvs -q -z3 -d :pserver:anoncvs@public.kitware.com:/cvsroot/KWStyle export -D ${DATE} -d ${dirname} KWStyle # Build tarball # rm -rf ../${dirname} mv ${dirname} .. cd .. GZIP="--best --no-name" tar czf ${tarname} ${dirname} debian/control0000644000000000000000000000146111735334415010601 0ustar Source: kwstyle Section: devel Priority: optional Maintainer: Mathieu Malaterre Build-Depends: debhelper (>= 8), cmake Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/collab-maint/kwstyle.git Vcs-Browser: http://git.debian.org/?p=collab-maint/kwstyle.git Homepage: http://public.kitware.com/KWStyle/ Package: kwstyle Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Style checker for source code KWStyle is integrated in the software process to ensure that the code written by several users is consistent and can be viewed/printed as it was written by one person. . KWStyle is primarily checking C/C++ source code but can be easily extended to other languages. It assumes that the code is syntaxically correct, i.e it compiles on a standard compiler. debian/stamp-makefile-build0000644000000000000000000000000011735332617013103 0ustar debian/changelog0000644000000000000000000000247311737031640011050 0ustar kwstyle (1.0.0+cvs20120330-3) unstable; urgency=low * Fix hardening compilation. Closes: #666529 * Really fix test failure on arch where char is unsigned * add --parallel flag. -- Mathieu Malaterre Wed, 04 Apr 2012 13:42:07 +0200 kwstyle (1.0.0+cvs20120330-2) unstable; urgency=low * Fix test failure on arch where char is unsigned. -- Mathieu Malaterre Mon, 02 Apr 2012 21:44:20 +0200 kwstyle (1.0.0+cvs20120330-1) unstable; urgency=low * New upstream * Use my d.o alias * Bump Std-Vers to 3.9.3, no changes needed * Switch to dpkg-source 3.0 (quilt) format * Use hardening flags * Use straight dh, instead of cdbs -- Mathieu Malaterre Fri, 30 Mar 2012 15:55:58 +0200 kwstyle (1.0.0+cvs20090716-3) unstable; urgency=low * Fix debian/copyright file -- Mathieu Malaterre (malat) Wed, 02 Sep 2009 14:56:02 +0200 kwstyle (1.0.0+cvs20090716-2) unstable; urgency=low * Fix KWStyle documentation * Some lintian fix from unstable -- Mathieu Malaterre (malat) Wed, 05 Aug 2009 10:02:51 +0200 kwstyle (1.0.0+cvs20090716-1) unstable; urgency=low * Initial release (Closes: #537227) -- Mathieu Malaterre (malat) Thu, 16 Jul 2009 11:40:13 +0200 debian/rules0000755000000000000000000000104711737031607010255 0ustar #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk # http://bugs.debian.org/653916 CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) %: dh $@ --parallel CMAKE_EXTRA_FLAGS += -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo override_dh_auto_configure: dh_auto_configure -- $(CMAKE_EXTRA_FLAGS) pkg_run = kwstyle override_dh_install: dh_installman -p$(pkg_run) debian/KWStyle.1 dh_installdocs -p$(pkg_run) Web get-orig-source: ./debian/get-orig-source .PHONY: get-orig-source debian/README.Debian0000644000000000000000000000065011735332463011237 0ustar kwstyle for Debian ------------------ This is NOT a 1.0.0 release, the one posted on: http://public.kitware.com/KWStyle/download.htm is dated from May 2005, instead pull a newer version directly from the CVS Instructions on how to use KWStyle can be found for example for ITK at: http://itk.org/Wiki/ITK_Procedure_for_Checking_Style -- Mathieu Malaterre Thu, 16 Jul 2009 11:40:13 +0200 debian/patches/0000755000000000000000000000000011737025263010623 5ustar debian/patches/series0000644000000000000000000000003411736400406012030 0ustar charisnotalwayssigned.patch debian/patches/charisnotalwayssigned.patch0000644000000000000000000000157611737025211016253 0ustar Description: Fix for arch where char is unsigned Forwarded: http://itk.org/Bug/view.php?id=13102 Author: Mathieu Malaterre Last-Update: 2012-04-04 Index: kwstyle/kwsCheckBadCharacters.cxx =================================================================== --- kwstyle.orig/kwsCheckBadCharacters.cxx 2012-04-02 21:42:00.000000000 +0200 +++ kwstyle/kwsCheckBadCharacters.cxx 2012-04-02 21:50:58.000000000 +0200 @@ -12,6 +12,7 @@ =========================================================================*/ #include "kwsParser.h" +#include "kwssys/FundamentalType.h" namespace kws { @@ -34,7 +35,11 @@ long int currentline = -1; while(it!= buffer.end()) { - if((*it)<0) +#if kwssys_CHAR_IS_SIGNED + if((*it)<0) +#else + if((*it)>127) +#endif { long int linenum = this->GetLineNumber(pos,!checkComments); if(linenum != currentline) debian/KWStyle.10000644000000000000000000000353211735333571010625 0ustar .TH KWSTYLE 1 "30 July 2009" .SH NAME KWStyle \- Style checker for source code .SH SYNOPSIS .B KWStyle .br .SH DESCRIPTION This manual page documents briefly the .BR KWStyle command. You can find information in the KWStyle manual page and on the KWStyle web page http://public.kitware.com/KWStyle. .SH OPTIONS [ \-d ] = Specify a directory [ \-R ] = Associated with \-d recurse through directories [ \-v ] = Display errors [ \-qv ] = Display less information [ \-lesshtml ] = Display less HTML [ \-vim ] = Generate errors as VIM format [ \-msvc ] = Generate errors as MSVC format [ \-gcc ] = Generate errors as GCC format [ \-html [filename] ] = Generate the HTML report [ \-cvs ] = Using KWStyle as a cvs precommit script [ \-exporthtml ] = Export the HTML report online [ \-xml [filename] ] = Read a XML configure file [ \-exportxml [filename] ] = Write output the report as a simple XML [ \-o [filename] ] = Overwrite rules file [ \-D ] = Specify a file listing all the directories [ \-B [filename] ] = Specify the base directory of the file [ \-b [filename] ] = Specify a black list of words [ \-dart [maxerror] [group] ] = Write out files to be send to the dart server With: maxerror (Default = \-1) With: group (Default = 0) [ \-kwsurl ] = Specify the base url of the KWStyle HTML report [ \-fix ] = Write out a fixed version of the parsed file = input filename .SH SEE ALSO HTML KWStyle Documentation Page at http://public.kitware.com/KWStyle/documentation.htm .SH AUTHOR Julien Jomier This manual page was written by Mathieu Malaterre for the Debian GNU/Linux system (but may be used by others). debian/copyright0000644000000000000000000001323411735334376011140 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: KWStyle Source: http://public.kitware.com/KWStyle/ Files: * Copyright: 2006-2009 Kitware, Inc. All rights reserved. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * The name of Kitware Inc., or the name of any contributors, may not be used to endorse or promote products derived from this software without specific prior written permission. . * Modified source versions must be plainly marked as such, and must not be misrepresented as being the original software. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: KWStyle is shipped with header file examples from real life those are not copyrighted materials: . - CADDLab @ UNC (Web/headers/SOVHeader.h) - Ken Martin, Will Schroeder, Bill Lorensen (Web/headers/VTKHeader.h) - ISIS Georgetown University (Web/headers/IGSTKHeader.h) - Insight Software Consortium (Web/headers/ITKHeader.h) - Atamai, Inc. (Web/headers/IGSTKSandbox/IGSTKHeader2.h) Files: Utilities/KWSys/hash_fun.hxx.in Utilities/KWSys/hash_map.hxx.in Utilities/KWSys/hashtable.hxx.in Utilities/KWSys/hash_set.hxx.in Copyright: Copyright (c) 1996, Silicon Graphics Computer Systems, Inc. License: Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Files: Utilities/KWSys/hash_fun.hxx.in Utilities/KWSys/hash_map.hxx.in Utilities/KWSys/hashtable.hxx.in Utilities/KWSys/hash_set.hxx.in Copyright: Copyright (c) 1994, Hewlett-Packard Company License: Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Files: Utilities/KWSys/RegularExpression.hxx.in Utilities/KWSys/RegularExpression.cxx Copyright: Copyright (C) 1991 Texas Instruments Incorporated. License: Permission is granted to any individual or institution to use, copy, modify and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation. . Texas Instruments Incorporated provides this software "as is" without express or implied warranty. Files: Utilities/KWSys/MD5.c Copyright: Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved. License: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Files: Utilities/KWSys/RegularExpression.cxx Copyright: Copyright (c) 1986 by University of Toronto. License: Permission is granted to anyone to use this software for any purpose on any computer system, and to redistribute it freely, subject to the following restrictions: . 1. The author is not responsible for the consequences of use of this software, no matter how awful, even if they arise from defects in it. . 2. The origin of this software must not be misrepresented, either by explicit claim or by omission. . 3. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. Files: debian/* Copyright: © 22009-012 Mathieu Malaterre License: BSD Same as above