mirror of
https://github.com/ukui/apt.git
synced 2026-03-09 09:35:45 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user