Commit | Line | Data |
---|---|---|
de45f55a AM |
1 | #!/bin/sh |
2 | ||
3 | case "$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 | ;; | |
12 | esac |