Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed May 19, 2023
1 parent da3b09f commit 4788e7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xlint
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export LC_ALL=C

scan() {
local rx="$1" msg="$(echo $2 | sed 's,/,\\/,g')"
local rx="$1" msg="$(echo "$2" | sed 's,/,\\/,g')"
grep -P -hn -e "$rx" "$template" |
grep -v -P -e "[^:]*:\s*#" |
sed "s/^\([^:]*\):\(.*\)/\1: $msg/" |
Expand Down Expand Up @@ -452,8 +452,10 @@ for argument; do
scan 'homepage=.*\$' "homepage should not use variables"
scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address"
scan 'maintainer=.*<.*@users.noreply.github.com>.*' "maintainer needs a valid address for sending mail"
scan '^(?!\s*('"$variables"'))[^\s=-]+=' "custom variables should use _ prefix: \\\2" | check_old_vars
scan '^[^ =]*=(""|''|)$' "variable set to empty string: \\\2"
scan '^(?!\s*('"$variables"'))[^\s=-]+=' 'custom variables should use _ prefix: \\2' | check_old_vars
set -x
scan '^[^ =]*=(""|''|)$' 'variable set to empty string: \\2'
set +x
scan '^(.*)-docs_package().*' 'use <pkgname>-doc subpackage for documentation'
scan 'distfiles=.*github.com.*/archive/.*\.zip[\"]?$' 'Use the distfile .tar.gz instead of .zip'
scan 'distfiles=.*downloads\.sourceforge\.net' 'use $SOURCEFORGE_SITE'
Expand Down

0 comments on commit 4788e7a

Please sign in to comment.