blob: db956578425df11efa07c27c6de4a1ed07319ea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
#
# Generic version-check override.
#
# RTKLIB's command-line tools (convbin, pos2kml, rnx2rtkp, rtkrcv, str2str)
# don't expose a --version flag; they print only a usage/synopsis block on
# unrecognized options, with no PKG_VERSION string anywhere in the output.
# The companion test.sh exercises actual invocation, so the generic version
# probe has no value here. Emit a line containing PKG_VERSION so the CI
# framework's "Version check override" passes.
case "$1" in
convbin|pos2kml|rnx2rtkp|rtkrcv|str2str)
echo "$1 $PKG_VERSION"
;;
*)
echo "Untested package: $1" >&2
exit 1
;;
esac
|