File: getapi

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 (8 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh
CURRENT=$(sed -ne "s/^LIBINTERFACE = //p" lib/$1/api)
REVISION=$(sed -ne "s/^LIBREVISION = //p" lib/$1/api)
AGE=$(sed -ne "s/^LIBAGE = //p" lib/$1/api)

echo $((${CURRENT}-${AGE}))

exit 0