#!@BASH@
#
# babelize-config -- shows on command prompt the configuration parameters.
#
# Copyright (c) 2003-2007 Maik Broemme <mbroemme@plusserver.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# $Id$

# this variables where filled at configure time, do not edit them.
SYSCONFDIR="@SYSCONFDIR@"
DATADIR="@DATADIR@"

# loading required files.
. ${SYSCONFDIR}/babelize.conf
. ${DATADIR}/babelize/babelize

# parse command line.
case "${1}" in
	--version)

		# show babelize version.
		babelize__printf "@BABELIZE_VERSION@"
		exit 0
	;;
	--langpack-dir)

		# show langpack directory.
		babelize__printf "${LANGPACK_DIR}"
		exit 0
	;;
	--langpack-extract-dir)

		# show langpack extract directory.
		babelize__printf "${LANGPACK_EXTRACT_DIR}"
		exit 0
	;;
	*)

		# show usage help.
		babelize__printf "Usage: $(@BASENAME@ ${0}) [--version] [--langpack-dir] [--langpack-extract-dir]"
		exit 1
	;;
esac
