#! /bin/echo AutoGen_Version_5.0,_but_this_should_be_sourced
# -*- Mode: sh -*-
# ----------------------------------------------------------------------
# VERSION --- Set version info for GNU-ish tool use
#
# Copyright (C) 1999-2002 Bruce Korb
#
# Time-stamp:        "2002-10-13 11:59:13 bkorb"
# by:                Bruce Korb <bkorb@gnu.org>
# Author:            Bruce Korb <bkorb@gnu.org>
         MAINTAINER='Bruce Korb <bkorb@gnu.org>'
# ----------------------------------------------------------------------

AG_MAJOR_VERSION=5
AG_MINOR_VERSION=4
AG_REVISION=$AG_MAJOR_VERSION.$AG_MINOR_VERSION
AG_PATCHLEVEL=".6"
AG_VERSION=$AG_REVISION$AG_PATCHLEVEL

# Making releases:
#   AG_PATCHLEVEL=""
#   AG_MINOR_VERSION += 1 (OR AG_MINOR_VERSION = 0 && AG_MAJOR_VERSION += 1)
#
# AutoOpts versioning:
#
# AO_CURRENT  represents the number of visible changes to the interface
# AO_REVISION represents the number of times the library has been
#             modified with an unchanged interface.
# AO_AGE      represents the number of older revisions the current library
#             is capable of handling.
#
AO_LIBRARY=libopts.la
AO_CURRENT=18
AO_REVISION=4
AO_AGE=9

GO_LIBRARY=libguileopts.la
GO_CURRENT=0
GO_REVISION=1
GO_AGE=0

# For automake
#
VERSION=$AG_VERSION
PACKAGE=autogen

#  Validate struct marker in autoopts/options.h
#  The computation here should be kept in sync automatically.
#
if [ -n "$srcdir" ] && [ -s $srcdir/autoopts/options.h ] ; then
  hdr=`egrep OPTIONS_STRUCT_VERSION $srcdir/autoopts/options.h |
       sed 's/.*OPTIONS_STRUCT_VERSION *//'`
  lib=`expr '(' $AO_CURRENT   '*' 4096 ')' + $AO_AGE`

  if [ ${hdr}0 -ne ${lib}0 ] ; then
    echo autoopts/options.h out of sync with version.
    echo OPTIONS_STRUCT_VERSION is $hdr, should be $lib
    exit 1
  fi
fi

# Display version numbers banner for my sanity!
#
soname=$AO_LIBRARY-$AO_CURRENT:$AO_REVISION:$AO_AGE
spaces="                                        "
while :
do
  string="$PACKAGE-$VERSION$spaces$soname"
  if echo "$string" | grep '^.\{78,\}$' > /dev/null; then
    break
  fi
  spaces=" $spaces"
done

cat << _EOF_
------------------------------------------------------------------------------


                 A      U      T      O      G      E      N

$string
------------------------------------------------------------------------------
_EOF_

# VERSION ends here
