#!/bin/sh

## This file is part of Moonlight Creator
## Copyright (C) 1996-1998  Stephane Rehel
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Library 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
## Library General Public License for more details.
##
## You should have received a copy of the GNU Library General Public
## License along with this library; if not, write to the Free
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#
# THIS IS THE ONLY PLACE WHERE YOU CAN CHANGE moonlight VERSION
#
MAJOR=0
MINOR=5
PATCHLEVEL=3

if test $# = 0 ; then
  echo ${MAJOR}.${MINOR}.${PATCHLEVEL}
  exit 0
fi

usage="Usage: $0 [-M|--major] | [-m|--minor] [-p|--patchlevel]"

if test $# != 1 ; then
  echo $usage 1>&2
  exit 1
fi

case "$1" in
  -M | --major)
    echo $MAJOR
    exit 0 ;;
  -m | --minor)
    echo $MINOR
    exit 0 ;;
  -p | --patchlevel)
    echo $PATCHLEVEL
    exit 0 ;;
esac

echo $usage 1>&2
exit 1

