diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-06-05 13:57:49 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-06-05 13:57:49 +0200 |
commit | 92015e44b50c5827ceff4f6fe31700390fbb48cd (patch) | |
tree | 16d7f83b66cba770ce25fcfb9450132920d64078 | |
parent | 07e3120280f47ea48fdc935edab9a82cf61308ac (diff) | |
download | xtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.tar.gz xtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.tar.xz xtools-92015e44b50c5827ceff4f6fe31700390fbb48cd.zip |
xlint: check that revision appears directly after version. v0.23
-rwxr-xr-x | xlint | 3 |
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" |