1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/bin/sh
usage () {
cat <<EOF
This script is a part of dictd package.
Usage: dictd-config [OPTIONS]
Options:
[--help]
[--version]
[--libs]
[--cflags]
[--plugindir] Directory where plugin should be installed and searched
[--dictdir] Directory where dictionaries should be installed and searched
EOF
}
prefix=@prefix@
exec_prefix=@exec_prefix@
while test $# -ne 0; do
case $1 in
--help)
usage
exit;;
--version)
echo @DICT_VERSION@
exit;;
--libs)
echo -L@libdir@
exit;;
--cflags)
echo -I@includedir@
exit;;
--plugindir)
echo @libexecdir@
exit;;
--dictdir)
echo @datadir@
exit;;
*)
echo "invalid argument $1"
exit 2
esac
shift
done
usage
|