From 3d257ea659e7afcace42865f75ad608ed1e08633 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 10 Sep 2015 14:42:33 +0200 Subject: xlint: require use of vlicense for MIT, BSD, ISC. Closes #23. --- xlint | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- cgit 1.4.1