Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / PkgConfigParse / pkg-config
blob183d08e0a0001b9b17d428507f76908088e80ecd
1 #!/bin/sh
3 set -eu
5 # ugly, but "good enough" for this test
6 # This will need to be updated whenever cabal invokes pkg-config
7 # in new ways
8 case "$*" in
9 '--version')
10 echo 2.1.0 # whatever
13 '--variable pc_path pkg-config')
14 echo '.'
17 '--list-all')
18 printf 'zlib zlib - zlib compression library\n'
19 # \256 = \xAE is the iso-8859-1 (latin-1) encoded version of U+00AE,
20 # i.e. the "registered sign": ®
21 # This resulted in problems, see #9608
22 printf 'vpl Intel\256 Video Processing Library - Accelerated video decode, encode, and frame processing capabilities on Intel\256 GPUs\n'
23 # \360 = \xF0 is latin-1 for ð; this is orð, Icelandic for "word"/"words".
24 printf 'or\360 Icelandic characters\n'
27 '--modversion '*)
28 shift # drop the --modversion
29 for arg; do
30 case "$arg" in
31 zlib) echo 1.3; ;; # whatever
32 vpl) echo 2.10; ;; # whatever
33 # No entry for orð here; let's not even try to match on that
35 echo >&2 "Package $arg was not found in the pkg-config search path."
36 exit 1
37 esac
38 done
41 # Ignore some stuff we're not implementing
42 '--cflags '*) ;;
43 '--libs '*) ;;
46 echo >&2 "pkg-config: unrecognised arguments $* (this is an incomplete shim)"
47 exit 1
49 esac