Browse Source

prepare-release: Add bump-abi command

This changes the ABI in the packaging based on the one
in the header.
tags/devuan/2.0.1+devuan1
Julian Andres Klode 1 year ago
parent
commit
d49cefd617
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      prepare-release

+ 8
- 0
prepare-release 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


Loading…
Cancel
Save