From b894203fb2840dffbaaccee3a352cc55653cb472 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Tue, 19 Jun 2018 12:12:18 +0000 Subject: xlint: check if version in distfiles is a non variable Closes: #93 [via git-merge-pr] --- xlint | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlint') diff --git a/xlint b/xlint index aa49c87..e4fd227 100755 --- a/xlint +++ b/xlint @@ -187,6 +187,8 @@ for template; do scan '^\t*[^ ]* *\(\)' 'do not use space before function parenthesis' scan '^\t*[^ ]*\(\)(| *){' 'use one space after function parenthesis' scan '^\t*[^ ]*\(\)$' 'do not use a newline before function opening brace' + version=$(grep -Po "^version=\K.*" "$template") + scan "distfiles=.*\Q$version\E" 'use ${version} in distfiles instead' else echo no such template "$template" 1>&2 fi | sort -t: -n -k2 | grep . && ret=1 -- cgit 1.4.1