diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-10 14:42:33 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-10 14:42:41 +0200 |
commit | 3d257ea659e7afcace42865f75ad608ed1e08633 (patch) | |
tree | 2b79288a11a3b69f7f28dc6f62b731630f1c872c | |
parent | 635a389d0f40592712a849012e83cf12be2149fe (diff) | |
download | xtools-3d257ea659e7afcace42865f75ad608ed1e08633.tar.gz xtools-3d257ea659e7afcace42865f75ad608ed1e08633.tar.xz xtools-3d257ea659e7afcace42865f75ad608ed1e08633.zip |
xlint: require use of vlicense for MIT, BSD, ISC. v0.27
Closes #23.
-rwxr-xr-x | xlint | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlint b/xlint index 6798c8a..dbb1f9e 100755 --- a/xlint +++ b/xlint @@ -132,7 +132,9 @@ for template; do scan 'license=.*[^L]GPL[^-]' "license GPL without version" scan 'license=.*LGPL[^-]' "license LGPL without version" if ! grep -q vlicense "$template"; then - scan 'license=.*custom' "license 'custom', but no use of vlicense" + for l in custom MIT BSD ISC; do + scan "license=.*$l" "license '$l', but no use of vlicense" + done fi if ! sed -n '/^version=/{n;/revision=/b;q1}' "$template"; then scan 'revision=' "revision does not appear immediately after version" |