aboutsummaryrefslogtreecommitdiff
blob: efb38f53e08cf6d15e0e57c7d49e6c36896ca6cd (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'

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