summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-06-05 13:57:49 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-06-05 13:57:49 +0200
commit92015e44b50c5827ceff4f6fe31700390fbb48cd (patch)
tree16d7f83b66cba770ce25fcfb9450132920d64078
parent07e3120280f47ea48fdc935edab9a82cf61308ac (diff)
downloadxtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.tar.gz
xtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.tar.xz
xtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.zip
xlint: check that revision appears directly after version. v0.23
-rwxr-xr-xxlint3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlint b/xlint
index 336d52a..68979ef 100755
--- a/xlint
+++ b/xlint
@@ -131,6 +131,9 @@ for template; do
 	if ! grep -q vlicense "$template"; then
 		scan 'license=.*custom' "license 'custom', but no use of vlicense"
 	fi
+	if ! sed -n '/version=/{n;/revision=/b;q1}' "$template"; then
+		scan 'revision=' "revision does not appear immediately after version"
+	fi
 	scan 'vinstall.* usr/bin' "use vbin"
 	scan 'vinstall.* usr/share/man' "use vman"
 	scan 'vinstall.* usr/share/licenses' "use vlicense"