aboutsummaryrefslogtreecommitdiff
blob: 5a0baa218c9c4aa7f608d241bc825af1cd22082b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Output the current list of Gentoo CI keyword errors.
# Requires bash, curl, and jq installed.

# pull latest CI keyword errors
JSON_URL="https://raw.githubusercontent.com/mgorny/pkgcheck2html/master/pkgcheck2html.conf.json"
keywords=$(curl -s ${JSON_URL} | jq -r 'to_entries | .[] | select(.value == "err") | .key' | sort)

# replace checkset in bundled config
cat << EOF > pkgcheck.conf
[CHECKSETS]
GentooCI =$(printf '\n  %s' ${keywords[@]})
EOF