Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
test-license Namespace Reference

Functions

 to_abs (d)
 
 valid_copyright (lines)
 
 valid_license (lines)
 
 valid_file (filename)
 
 exclude (filename)
 
 main ()
 

Variables

 ROOT = os.path.join(os.path.dirname(__file__), "..")
 
list RELDIRS
 
list REL_EXCLUDES
 
list DIRS = [to_abs(d) for d in RELDIRS]
 
list EXCLUDES = [to_abs(d) for d in REL_EXCLUDES]
 
list SUFFIXES
 
int MAX_BYTES = 10000
 
int MAX_LINES = 50
 
list LICENSE_LINES
 
dict COPYRIGHT_EXCEPTIONS
 
dict LICENSE_EXCEPTIONS
 

Function Documentation

◆ exclude()

exclude ( filename)

◆ main()

main ( void )

◆ to_abs()

to_abs ( d)

◆ valid_copyright()

valid_copyright ( lines)

◆ valid_file()

valid_file ( filename)

◆ valid_license()

valid_license ( lines)

Variable Documentation

◆ COPYRIGHT_EXCEPTIONS

dict COPYRIGHT_EXCEPTIONS
Initial value:
1= {
2 # From zstdmt
3 "threading.c",
4 "threading.h",
5 # From divsufsort
6 "divsufsort.c",
7 "divsufsort.h",
8}

◆ DIRS

list DIRS = [to_abs(d) for d in RELDIRS]

◆ EXCLUDES

list EXCLUDES = [to_abs(d) for d in REL_EXCLUDES]

◆ LICENSE_EXCEPTIONS

dict LICENSE_EXCEPTIONS
Initial value:
1= {
2 # From divsufsort
3 "divsufsort.c",
4 "divsufsort.h",
5 # License is slightly different because it references GitHub
6 "linux_zstd.h",
7}

◆ LICENSE_LINES

list LICENSE_LINES
Initial value:
1= [
2 "This source code is licensed under both the BSD-style license (found in the",
3 "LICENSE file in the root directory of this source tree) and the GPLv2 (found",
4 "in the COPYING file in the root directory of this source tree).",
5 "You may select, at your option, one of the above-listed licenses.",
6]

◆ MAX_BYTES

int MAX_BYTES = 10000

◆ MAX_LINES

int MAX_LINES = 50

◆ REL_EXCLUDES

list REL_EXCLUDES
Initial value:
1= [
2 "contrib/linux-kernel/test/include",
3]

◆ RELDIRS

list RELDIRS
Initial value:
1= [
2 "doc",
3 "examples",
4 "lib",
5 "programs",
6 "tests",
7 "contrib/linux-kernel",
8]

◆ ROOT

ROOT = os.path.join(os.path.dirname(__file__), "..")

◆ SUFFIXES

list SUFFIXES
Initial value:
1= [
2 ".c",
3 ".h",
4 "Makefile",
5 ".mk",
6 ".py",
7 ".S",
8]