#! /bin/sh

GGZDCONFDIR=/etc/ggz
GGZDDATADIR=/usr/share/ggz
GGZDLIBDIR=/usr/lib/ggz

case $1 in
-c|--confdir)
    echo "$GGZDCONFDIR"
    ;;

-g|--gamedir)
    echo "$GGZDLIBDIR"
    ;;

-d|--datadir)
    echo "$GGZDDATADIR"
    ;;

-\?|-h|--help)
    cat <<EOF
Usage: ggzd-config [OPTION...]
  -c, --configdir       Query GGZDCONFDIR - location of configuration directory
  -g, --gamedir         Query GGZDGAMEDIR - location of modules directory
  -d, --datadir         Query GGZDDATADIR - location of data directory

Help options:
  -?, --help            Show this help message
  --usage               Display brief usage message
EOF
    ;;

--usage)
    cat <<EOF
Usage: ggzd-config [-c|--configdir] [-g|--gamedir] [-d|--datadir]
EOF
    ;;

*)
    echo "Try 'ggzd-config --help' for help"
    exit 1
    ;;

esac

exit
