aboutsummaryrefslogtreecommitdiff
blob: 2417d7e72adb36645700c20398772e715145fd37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

OUTDIR=$1

if [[ -z ${OUTDIR} ]]; then
	echo "Usage: $0 <out-dir>" >&2
	exit 1
fi

IRC='ircs://irc.libera.chat/#gentoo-python-notices'

irk "${IRC}" - <<<$'\0'
gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.new
while read -r x; do
	irk "${IRC}" "${x}"
done < <(git diff -s --word-diff -U0 "${OUTDIR}"/python-pkg-impls.txt{,.new} | tail -n +5 | grep -v '^@@')
mv "${OUTDIR}"/python-pkg-impls.txt{.new,}