update source script copyright-check: isolate closure-compiler, and fix isolate musl; add TODO about pending parts
Jonas Smedegaard
3 years ago
1 | 1 |
+ node-acorn
|
2 | 2 |
+ node-terser
|
3 | 3 |
+ node-uglify
|
|
4 |
* verify copyright and licenses:
|
|
5 |
+ poppler
|
|
6 |
+ sdl
|
|
7 |
+ openjpeg
|
|
8 |
+ zlib
|
|
9 |
+ musl
|
|
10 |
+ misc
|
17 | 17 |
|
18 | 18 |
set -eu
|
19 | 19 |
|
20 | |
# FIXME: closely examine from poppler onwards
|
|
20 |
# FIXME: closely examine from poppler onwards (except cloure)
|
21 | 21 |
|
22 | 22 |
# cleanup stray hint files from a previous run
|
23 | 23 |
find ./* -type f \( -name '*:meta' -or -name '*:skip' \) -delete
|
|
62 | 62 |
RE_openjpeg='tests/third_party/openjpeg/.*'
|
63 | 63 |
RE_zlib='tests/third_party/zlib/.*|tests/third_party/freetype/src/gzip/.*'
|
64 | 64 |
RE_musl='system/lib/libc/musl/.*'
|
|
65 |
RE_closure='third_party/closure-compiler/.*'
|
65 | 66 |
|
66 | 67 |
# files misdetected by licensecheck
|
67 | 68 |
RE_fsfullr_=$(grep --files-with-matches --recursive --null \
|
|
157 | 158 |
_licensecheck 'tests/third_party/openjpeg/*' --check "^($RE_openjpeg)$" --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|$RE_generated|debian/.*)$"
|
158 | 159 |
_licensecheck 'tests/third_party/zlib/* tests/third_party/freetype/src/gzip/*' --check "^($RE_zlib)$" --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|debian/.*)$"
|
159 | 160 |
_licensecheck 'system/lib/libc/musl/*' --check "^($RE_musl)$" --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|debian/.*)$"
|
|
161 |
_licensecheck 'third_party/closure-compiler/*' --check "^($RE_closure)$" --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|$RE_generated|debian/.*)$"
|
160 | 162 |
|
161 | 163 |
# scan files misdetected by licensecheck
|
162 | 164 |
_licensecheck '?BSD~cmake' --check "^($RE_bsd_cmake)$" --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|$RE_generated|debian/.*)$"
|
|
165 | 167 |
|
166 | 168 |
# scan generally
|
167 | 169 |
# * omit non-copyright-protected Debian files
|
168 | |
_licensecheck '' --check '.*' --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|$RE_generated|$RE_freetype|$RE_bullet|$RE_box2d|$RE_poppler|$RE_sdl|$RE_openjpeg|$RE_x11_|$RE_zlib|debian/.*)$"
|
|
170 |
_licensecheck '' --check '.*' --ignore "^($RE_default|$RE_omit|$RE_skip|$RE_meta|$RE_generated|$RE_freetype|$RE_bullet|$RE_box2d|$RE_poppler|$RE_sdl|$RE_openjpeg|$RE_x11_|$RE_zlib|$RE_musl|$RE_closure|debian/.*)$"
|
169 | 171 |
_licensecheck '*/debian' --check '^debian/' --ignore '^debian/(changelog|copyright(_hints)?|source/lintian-overrides)$'
|
170 | 172 |
|
171 | 173 |
# cleanup hint files
|