Last change
on this file since 35 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
1000 bytes
|
Line | |
---|
1 | // copyright_check implementation ------------------------------------------------// |
---|
2 | |
---|
3 | // Copyright Beman Dawes 2002. |
---|
4 | // Distributed under the Boost Software License, Version 1.0. |
---|
5 | // (See accompanying file LICENSE_1_0.txt or copy at |
---|
6 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | #include "copyright_check.hpp" |
---|
9 | |
---|
10 | namespace boost |
---|
11 | { |
---|
12 | namespace inspect |
---|
13 | { |
---|
14 | copyright_check::copyright_check() : m_files_with_errors(0) |
---|
15 | { |
---|
16 | } |
---|
17 | |
---|
18 | void copyright_check::inspect( |
---|
19 | const string & library_name, |
---|
20 | const path & full_path, // example: c:/foo/boost/filesystem/path.hpp |
---|
21 | const string & contents ) // contents of file to be inspected |
---|
22 | { |
---|
23 | if (contents.find( "boostinspect:" "nocopyright" ) != string::npos) return; |
---|
24 | |
---|
25 | if ( contents.find( "Copyright" ) == string::npos |
---|
26 | && contents.find( "copyright" ) == string::npos ) |
---|
27 | { |
---|
28 | ++m_files_with_errors; |
---|
29 | error( library_name, full_path, name() ); |
---|
30 | } |
---|
31 | } |
---|
32 | } // namespace inspect |
---|
33 | } // namespace boost |
---|
34 | |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.