From 2f919ef148e6018a2e36ccc0fe0bc1d0fdc6899c Mon Sep 17 00:00:00 2001 From: Đoàn Trần Công Danh Date: Sat, 29 May 2021 16:42:27 +0700 Subject: xlint: treat " WITH " as ", " in license Closes: #211 [via git-merge-pr] --- xlint | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xlint b/xlint index d611d4a..3ad7a5a 100755 --- a/xlint +++ b/xlint @@ -285,7 +285,10 @@ for argument; do : "${LICENSE_LIST:=/usr/share/spdx/license.lst}" if [ -f "${LICENSE_LIST}" ]; then - sed -n 's/license="\(.*\)"/\1/p' "$template" | tr , "\n" | while read -r l; do + sed -n 's/license="\(.*\)"/\1/p' "$template" | + sed 's/ WITH /,/g' | + tr , "\n" | + while read -r l; do case "$l" in custom:*|'Public Domain') continue ;; esac -- cgit 1.4.1