#!/usr/bin/env bash
#
# Show the version of the Cogito toolkit.
# Copyright (c) Petr Baudis, 2005
#
# Show which version of Cogito is installed.
# Additionally, the 'HEAD' of the installed Cogito
# is also shown if this information was available
# at the build time.

USAGE="cg-version"
_git_repo_unneeded=1

. "${COGITO_LIB:-/usr/lib/cogito/}"cg-Xlib || exit 1

version="cogito-0.17.3"
head=""
if [ -z "$head" ]; then
	echo "$version"
	exit
elif [ "$version" = "$head" ]; then
	echo "$version (real)"
else
	echo "$version ($head)"
fi
