diff options
author | Keith Maxwell <keith.maxwell@gmail.com> | 2019-05-12 18:16:48 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-07-17 12:06:32 +0000 |
commit | e476188c6f415ad3b4aa3a444709784fbba1ebb1 (patch) | |
tree | 874781c9a28e22286106a307ff1d057d3004146b /Makefile | |
parent | c9d6159637a75eec19edf571c1e10c3510f4dd94 (diff) | |
download | abuild-e476188c6f415ad3b4aa3a444709784fbba1ebb1.tar.gz abuild-e476188c6f415ad3b4aa3a444709784fbba1ebb1.tar.bz2 abuild-e476188c6f415ad3b4aa3a444709784fbba1ebb1.tar.xz abuild-e476188c6f415ad3b4aa3a444709784fbba1ebb1.zip |
Better use license.lst in abuild sanitycheck
Before this change an invalid licence= in an APKBUILD will pass `abuild
sanitycheck`. '/usr/share/spdx/license.lst' contains one licence per line.
`grep -x` will match partial lines whereas `grep -w` will only match whole
lines.
An simple demonstration is with 'GPL-3.0' which is not a valid SPDX licence
identifier. 'GPL-3.0-only' and 'GPL-3.0-or-later' are valid licences.
```
$ grep --help
BusyBox v1.30.1 (2019-04-26 06:26:16 UTC) multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
✂
-w Match whole words only
-x Match whole lines only
✂
$ grep -w -F GPL-3.0 /usr/share/spdx/license.lst
GPL-3.0-only
GPL-3.0-or-later
$ grep -x -F GPL-3.0 /usr/share/spdx/license.lst
$
```
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions