3 # Copyright © 2020 Nick Bowler
5 # Fake gob2 program for testing the gob2 detection macro.
7 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 # This is free software: you are free to do what the fuck you want to.
9 # There is NO WARRANTY, to the extent permitted by law.
11 : "${FAKE_GOB2_VERSION=2.0.0}"
24 if test x
"$infile" = x
""; then
25 printf '%s: error: no input file\n' "$argv0" 1>&2
31 while IFS
=$IFS.
read a b c d e
<&3; do
35 set x
$FAKE_GOB2_VERSION; shift
38 { test "${1:-0}" -gt "${b:-0}" ||
39 { test "${1:-0}" -eq "${b:-0}" &&
40 { test "${2:-0}" -gt "${c:-0}" ||
41 { test "${2:-0}" -eq "${c:-0}" && test "${3:-0}" -ge "${d:-}"
43 { printf '%s: error: minimum version not met\n' "$argv0"; exit; }
48 cat >conftest.c
<<'EOF'
49 int conftest_get_type(void) { }