summaryrefslogtreecommitdiffstats
path: root/debian/exim4-localscan-plugin-config
blob: 08fd2cc4541781b47b43b508dfd98e6df6d3701b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

case "$1" in
    --localscan-apiversion)
        sed -rn 's/#define LOCAL_SCAN_ABI_VERSION_(MAJOR|MINOR) *([0-9]+).*/\2/p' \
            /usr/include/exim4/local_scan.h \
            | (read MAJOR; read MINOR; echo ${MAJOR}.${MINOR})
        ;;
    *)
        echo Usage: $0 --localscan-apiversion
	;;
esac