prepare-release: Add bump-abi command

This changes the ABI in the packaging based on the one
in the header.
This commit is contained in:
Julian Andres Klode
2019-05-06 16:07:07 +02:00
parent f6d7e21b7b
commit d49cefd617
+8
View File
@@ -355,6 +355,14 @@ elif [ "$1" = "merge-translations" ]; then
| msgcat --use-first - $i \
| sponge $i
done
elif [ "$1" = "bump-abi" ]; then
LIBAPTPKGVERSION=${2:-${LIBAPTPKGVERSION}}
rename s/libapt-pkg[0-9.]+[0-9]/libapt-pkg${LIBAPTPKGVERSION}/g $(find debian/ -type f)
sed -i \
-re s/libapt-pkg[0-9.]+[0-9]/libapt-pkg${LIBAPTPKGVERSION}/g \
-re s/APTPKG_[0-9.]+[0-9]/APTPKG_${LIBAPTPKGVERSION}/g \
-re s/libapt-pkg.so.[0-9.]+[0-9]/libapt-pkg.so.${LIBAPTPKGVERSION}/g \
$(find debian/ -type f -and -not -name changelog)
else
echo >&1 "Usage:\t$0 pre-export
\t$0 pre-build