aboutsummaryrefslogtreecommitdiff
blob: 8c365dd11e91393d26dc134247bcdae94e7969a4 (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 -s --word-diff -U0 "${OUTDIR}"/python-pkg-impls.txt{,.new} | tail -n +5 | grep -v '^@@')
mv "${OUTDIR}"/python-pkg-impls.txt{.new,}