1LICENSECHECK(1)                                                LICENSECHECK(1)
2
3
4

NAME

6       licensecheck - simple license checker for source files
7

SYNOPSIS

9       licensecheck --help|--version
10
11       licensecheck [--no-conf] [--verbose] [--copyright] [-l|--lines=N]
12       [-i|--ignore=regex] [-c|--check=regex] [-r|--recursive] list of files
13       and directories to check
14

DESCRIPTION

16       licensecheck attempts to determine the license that applies to each
17       file passed to it, by searching the start of the file for text
18       belonging to various licenses.
19
20       If any of the arguments passed are directories, licensecheck will add
21       the files contained within to the list of files to process.
22

OPTIONS

24       --verbose --no-verbose
25           Specify whether to output the text being processed from each file
26           before the corresponding license information.
27
28           Default is to be quiet.
29
30       -l=N --lines=N
31           Specify the number of lines of each file's header which should be
32           parsed for license information. (Default is 60).
33
34       -i=regex --ignore=regex
35           When processing the list of files and directories, the regular
36           expression specified by this option will be used to indicate those
37           which should not be considered (e.g. backup files, VCS metadata).
38
39       -r --recursive
40           Specify that the contents of directories should be added
41           recursively.
42
43       -c=regex --check=regex
44           Specify a pattern against which filenames will be matched in order
45           to decide which files to check the license of.
46
47           The default includes common source files.
48
49       --copyright
50           Also display copyright text found within the file
51
52       --no-conf --noconf
53           Do not read any configuration files. This can only be used as the
54           first option given on the command-line.
55

CONFIGURATION VARIABLES

57       The two configuration files /etc/rpmdevtools/devscripts.conf and
58       ~/.devscripts are sourced by a shell in that order to set configuration
59       variables.  Command line options can be used to override configuration
60       file settings.  Environment variable settings are ignored for this
61       purpose.  The currently recognised variables are:
62
63       LICENSECHECK_VERBOSE
64           If this is set to yes, then it is the same as the --verbose command
65           line parameter being used. The default is no.
66
67       LICENSECHECK_PARSELINES
68           If this is set to a positive number then the specified number of
69           lines at the start of each file will be read whilst attempting to
70           determine the license(s) in use.  This is equivalent to the --lines
71           command line option.
72

LICENSE

74       This code is copyright by Adam D. Barratt <adam@adam-barratt.org.uk>,
75       all rights reserved; based on a script of the same name from the KDE
76       SDK, which is copyright by <dfaure@kde.org>.  This program comes with
77       ABSOLUTELY NO WARRANTY.  You are free to redistribute this code under
78       the terms of the GNU General Public License, version 2 or later.
79

AUTHOR

81       Adam D. Barratt <adam@adam-barratt.org.uk>
82
83
84
85Debian Utilities                  2010-09-27                   LICENSECHECK(1)
Impressum