1
0
Fork 0
exim4/debian/exim4-localscan-plugin-config
Daniel Baumann b6ead8c0a5
Adding debian version 4.98.2-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:27:17 +02:00

12 lines
318 B
Bash
Executable file

#!/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