File: checkapi

package info (click to toggle)
bind9-libs 1%3A9.11.19%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,008 kB
  • sloc: ansic: 341,272; sh: 38,449; xml: 22,061; perl: 8,266; makefile: 3,913; cpp: 2,086; python: 535; tcl: 13
file content (11 lines) | stat: -rwxr-xr-x 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
ret=0
for LIB in bind9 dns irs isc lwres isccc isccfg; do
    OLD_SOVERSION=$(sed -ne "s/Package: lib$LIB[-]*\([0-9]*\)$/\1/p" debian/control)
    NEW_SOVERSION=$(debian/getapi "${LIB}")
    if [ "$OLD_SOVERSION" -ne "$NEW_SOVERSION" ]; then
	echo "ERROR: SONAME of lib$LIB has changed from lib$LIB.so.$OLD_SOVERSION to lib$LIB.so.$NEW_SOVERSION"
	ret=1
    fi
done
exit $ret