diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-06 16:07:07 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-06 16:07:07 +0200 |
commit | d49cefd617fa9fdb9f38e7d8328bfbbd2f29a9c4 (patch) | |
tree | e268a7080c31a4b3e5a3eecd607b9335c006fb02 /prepare-release | |
parent | f6d7e21b7ba31f396d4e8c8e8a0b5b31562afb5b (diff) | |
download | apt-d49cefd617fa9fdb9f38e7d8328bfbbd2f29a9c4.tar.gz |
prepare-release: Add bump-abi command
This changes the ABI in the packaging based on the one
in the header.
Diffstat (limited to 'prepare-release')
-rwxr-xr-x | prepare-release | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prepare-release b/prepare-release index 919450b33..5eef65276 100755 --- a/prepare-release +++ b/prepare-release @@ -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 |