about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-11-28 20:04:06 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2014-11-28 20:04:06 +0100
commit91cc89d942ca10ed89a25a2ae414c4d9b64dd700 (patch)
tree73007ac9375dc0bc2b28843d5dbe340a32c551de /xlint
parent5eff9daec53677c684564911b2771821a2abcdae (diff)
downloadxtools-91cc89d942ca10ed89a25a2ae414c4d9b64dd700.tar.gz
xtools-91cc89d942ca10ed89a25a2ae414c4d9b64dd700.tar.xz
xtools-91cc89d942ca10ed89a25a2ae414c4d9b64dd700.zip
xlint: check for vlicense (fixes #5)
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlint b/xlint
index ae3df3d..90e00fa 100755
--- a/xlint
+++ b/xlint
@@ -99,6 +99,9 @@ for template; do
 	scan 'short_desc=["'\''].{72}' "short_desc should be less than 72 chars"
 	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"
+	fi
 	scan 'vinstall.* usr/bin' "use vbin"
 	scan 'vinstall.* usr/share/man' "use vman"
 	scan 'vinstall.* usr/share/licenses' "use vlicense"