openbsd-ports/security/gnutls/files/libgnutls-config
gsoares 0f5e86d72b add missing rcs id
OK aja
2012-10-30 14:21:36 +00:00

44 lines
636 B
Bash

#!/bin/sh
#
# $OpenBSD: libgnutls-config,v 1.2 2012/10/30 14:21:36 gsoares Exp $
usage()
{
cat <<EOF
Usage: libgnutls-config [OPTIONS]
Options:
[--version]
[--libs]
[--cflags]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo "`pkg-config --modversion gnutls`"
exit 0
;;
--cflags)
echo "`pkg-config --cflags gnutls`"
;;
--libs)
echo "`pkg-config --libs gnutls`"
;;
*)
usage 1 1>&2
;;
esac
shift
done