diff options
Diffstat (limited to 'debian/exim4-localscan-plugin-config')
-rwxr-xr-x | debian/exim4-localscan-plugin-config | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/exim4-localscan-plugin-config b/debian/exim4-localscan-plugin-config new file mode 100755 index 0000000..08fd2cc --- /dev/null +++ b/debian/exim4-localscan-plugin-config @@ -0,0 +1,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 |