1130.3.37
by Monty Taylor
Made people use my ack options for this script. |
1 |
#!/usr/bin/env bash
|
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
2 |
# Copyright (C) 2009 Sun Microsystems, Inc.
|
1130.3.5
by Monty Taylor
Fixed multi_malloc.h include guard. |
3 |
#
|
4 |
# This program is free software; you can redistribute it and/or modify
|
|
5 |
# it under the terms of the GNU General Public License as published by
|
|
6 |
# the Free Software Foundation; version 2 of the License.
|
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU General Public License for more details.
|
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU General Public License
|
|
14 |
# along with this program; if not, write to the Free Software
|
|
15 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
16 |
||
1130.3.42
by Monty Taylor
Fied check_include_guards for distcheck. |
17 |
# If srcdir is set, that means that we're in a distcheck build, and need to
|
18 |
# operate in that context.
|
|
19 |
if test "x${srcdir}" != "x" ; then |
|
20 |
cd ${srcdir} |
|
21 |
fi
|
|
22 |
||
1130.3.47
by Monty Taylor
Added two more checks from cpplint. Added BSD license header for crc files. |
23 |
command="python extra/cpplint.py --filter=-whitespace,-runtime,-readability,+legal,-build,+build/header_guard,+build/include_config,+build/namespaces" |
1130.3.5
by Monty Taylor
Fixed multi_malloc.h include guard. |
24 |
if test "x$1" = "x" ; then |
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
25 |
echo "ERROR: supply a filename to line." |
26 |
exit 1 |
|
1130.3.5
by Monty Taylor
Fixed multi_malloc.h include guard. |
27 |
else
|
28 |
$command $1 |
|
29 |
fi
|
|
1130.3.42
by Monty Taylor
Fied check_include_guards for distcheck. |
30 |
retval=$? |
31 |
if test ${retval} -ne 0 ; then |
|
1130.3.44
by Monty Taylor
Moved extra checks in the shell script into cpplint for a single pass through the tree. |
32 |
echo "ERROR: cpplint found errors in the tree... please see output above" |
33 |
exit ${retval} |
|
1130.3.32
by Monty Taylor
Added check for using namespace in headers. |
34 |
fi
|
35 |