36813c
#!/bin/bash
36813c
# fetch-rawhide-pari-build - fetches current rawhide pari build for abidiff
36813c
36813c
nvr=$(koji latest-pkg rawhide pari | tail -n 1 | awk '{ print $1 }')
36813c
36813c
mkdir -p "$nvr"
36813c
cd "$nvr"
36813c
36813c
verrel=$(echo $nvr | sed -e 's/^pari-//')
36813c
36813c
dnf --disablerepo=\* --enablerepo=rawhide download \
36813c
	"pari-${verrel}" "pari-gp-${verrel}"
36813c
36813c
dnf --disablerepo=\* --enablerepo=rawhide-debuginfo download \
36813c
	"pari-debuginfo-${verrel}" "pari-gp-debuginfo-${verrel}"
36813c
36813c
cd -
36813c
36813c
newverrel=$(fedpkg verrel | sed -e 's/^pari-//')
36813c
36813c
echo abipkgdiff --d1 "$nvr/pari-debuginfo-${verrel}".x86_64.rpm --d2 "pari-${newverrel}/pari-debuginfo-${newverrel}".x86_64.rpm "$nvr/pari-${verrel}".x86_64.rpm "pari-${newverrel}/pari-${newverrel}".x86_64.rpm
36813c
echo abipkgdiff --d1 "$nvr/pari-debuginfo-${verrel}".x86_64.rpm --d2 "pari-${newverrel}/pari-debuginfo-${newverrel}".x86_64.rpm --d1 "$nvr/pari-gp-debuginfo-${verrel}".x86_64.rpm --d2 "pari-${newverrel}/pari-gp-debuginfo-${newverrel}".x86_64.rpm "$nvr/pari-gp-${verrel}".x86_64.rpm "pari-${newverrel}/pari-gp-${newverrel}".x86_64.rpm