You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
453 B
22 lines
453 B
#!/bin/sh
|
|
|
|
# This is a replacement for pkg-config that compares the string passed
|
|
# to the --exists argument with the PKG_CONFIG_PATH environment variable
|
|
# and returns 1 if they are different.
|
|
|
|
case $1 in
|
|
--version)
|
|
echo "0.0-cmake-dummy"
|
|
;;
|
|
--exists)
|
|
shift
|
|
eval last=\${$#}
|
|
echo "Expected: ${last}"
|
|
echo "Found: ${PKG_CONFIG_PATH}"
|
|
[ "${last}" = "${PKG_CONFIG_PATH}" ] || exit 1
|
|
;;
|
|
*)
|
|
exit 255
|
|
;;
|
|
esac
|