about summary refs log tree commit diff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2021-05-29 16:42:27 +0700
committerLeah Neukirchen <leah@vuxu.org>2021-05-29 19:13:55 +0200
commit2f919ef148e6018a2e36ccc0fe0bc1d0fdc6899c (patch)
treea03c593d397eb2e882778e2235254fd56a8fda6f
parent343ee924455eb56b6bf3c798e4d7c87cf6921972 (diff)
downloadxtools-2f919ef148e6018a2e36ccc0fe0bc1d0fdc6899c.tar.gz
xtools-2f919ef148e6018a2e36ccc0fe0bc1d0fdc6899c.tar.xz
xtools-2f919ef148e6018a2e36ccc0fe0bc1d0fdc6899c.zip
xlint: treat " WITH " as ", " in license
Closes: #211 [via git-merge-pr]
-rwxr-xr-xxlint5
1 files changed, 4 insertions, 1 deletions
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