Import Debian changes 4.92-8+deb10u4
[hcoop/debian/exim4.git] / debian / exim4-localscan-plugin-config
CommitLineData
de45f55a
AM
1#!/bin/sh
2
3case "$1" in
4 --localscan-apiversion)
5 sed -rn 's/#define LOCAL_SCAN_ABI_VERSION_(MAJOR|MINOR) *([0-9]+).*/\2/p' \
6 /usr/include/exim4/local_scan.h \
7 | (read MAJOR; read MINOR; echo ${MAJOR}.${MINOR})
8 ;;
9 *)
10 echo Usage: $0 --localscan-apiversion
11 ;;
12esac