#!/bin/sh
#*=====================================================================*/
#*    serrano/out/autoconf/oldinfo                                     */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Thu Jan 14 15:12:37 1999                          */
#*    Last change :  Thu Jan 14 15:35:51 1999 (serrano)                */
#*    -------------------------------------------------------------    */
#*    Check if info is an old version                                  */
#*=====================================================================*/

makeinfo=makeinfo
user=`whoami`
file=actest$user

#*---------------------------------------------------------------------*/
#*    We parse the arguments                                           */
#*---------------------------------------------------------------------*/
while : ; do
  case $1 in
    "")
      break;;
    --makeinfo=*|-makeinfo=*)
      makeinfo="`echo $1 | sed 's/^[-a-z]*=//'`";;

    -*)
      echo "Unknown option \"$1\", ignored" >&2;;
  esac
  shift
done

cat > $file.texi <<EOF
@settitle Bdb @value{edition}
@syncodeindex vr cp
@syncodeindex pg cp
@syncodeindex fn cp

@footnotestyle separate
@ifinfo
@paragraphindent 2
@end ifinfo
@finalout

@set edition 0.0
@set update-month Jun 1998
@set update-date 0 @value{update-month}

@ifinfo
toto
@end ifinfo

@setchapternewpage odd

@shorttitlepage Bdb

@titlepage
@title Bdb
@subtitle The ``Bigloo Debugger''
@subtitle @value{update-month}

@author Manuel@: Serrano

@page
@vskip 0pt plus 1filll
Copyright @copyright{} 1998 
by Manuel Serrano
                                                                     
Bug descriptions, use reports, comments or suggestions are     
welcome. Send them to Manuel Serrano --- @email{Manuel.Serrano@@unice.fr}
@end titlepage

@ifinfo
@node Top, Copying, (dir), (dir)
@menu
* Copying::                     
@end menu
@end ifinfo

@node Copying, , Top, Top
@unnumbered Bdb Copying Conditions
@cindex Copying conditions
@cindex Conditions for copying Bdb

@email{toto}
@url{titi}
@multitable @columnfractions .33 .33 .33
@item @code{=>}               @tab @code{do}              @tab @code{or}
@item @code{and}              @tab @code{else}            @tab @code{quasiquote}
@item @code{begin}            @tab @code{if}              @tab @code{quote}
@item @code{case}             @tab @code{lambda}          @tab @code{set}!
@end multitable

@contents
@summarycontents
@bye
EOF


sh -c "$makeinfo $file.texi" > /dev/null 2> /dev/null

if [ $? = "0" ];then
   rm -f $file.texi
   rm -f $file.info
   exit 0
else
   rm -f $file.texi
   rm -f $file.info
   exit 1
fi




