formatHeader.main.c
/************************************************************* -*-c-*- ******************************/
/*                                                                                                  */
/* formatHeader.main.c:                                                                             */
/*                                                                                                  */
/****************************************************************************************************/

/****************************************************************************************************/
/*                                                                                                  */
/*     Copyright (C) 2003 Joerg Kunze                                                               */
/*                                                                                                  */
/*     This file is part of siliconBrain.                                                           */
/*                                                                                                  */
/*     siliconBrain 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.                                                          */
/*                                                                                                  */
/*     siliconBrain 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                    */
/*                                                                                                  */
/****************************************************************************************************/
#include <stdio.h>
#include <stdlib.h>

#include "siliconBrainSpecification"

const char *siliconBrainRelease       = "$siliconBrainRelease: 0.2.3 $";
const char *siliconBrainRcsIdentifier = "$Id: formatHeader.main.c,v 1.7 2004/12/14 23:31:26 joerg Exp $";
const char *siliconBrainSaveStamp     = "$siliconBrainSaveStamp: 2004/12/14 22:29:40, Joerg Kunze$";

#define argComment                (argv[  1 ] )
#define argSourceRelease          (argv[  2 ] )
#define argSourceRcsIdentifier    (argv[  3 ] )
#define argSourceSaveStamp        (argv[  4 ] )
#define argSourceTitle            (argv[  5 ] )
#define argGeneratorRelease       (argv[  6 ] )
#define argGeneratorRcsIdentifier (argv[  7 ] )
#define argGeneratorSaveStamp     (argv[  8 ] )
#define argVersionFormat          (argv[  9 ] )

int main( int argc, char *argv[] ) {

   if( argc < 9 ) {
      fprintf( stderr, "formatHeader: too view args\n" );
      exit( 42 );
   }

   Specification sourceSpecification = {
      .release       = argSourceRelease      ,
      .rcsIdentifier = argSourceRcsIdentifier,
      .saveStamp     = argSourceSaveStamp    ,
      .title         = argSourceTitle
   };

   Specification generatorSpecification = {
      .release       = argGeneratorRelease      ,
      .rcsIdentifier = argGeneratorRcsIdentifier,
      .saveStamp     = argGeneratorSaveStamp
   };

   formatHeader( argComment, &sourceSpecification, &generatorSpecification, argVersionFormat );

   return 0;
}

/*
$Log: formatHeader.main.c,v $
Revision 1.7  2004/12/14 23:31:26  joerg
published for new release 0.2.3

Revision 1.6  2004/12/14 23:17:05  joerg
published for new release 0.2.2

Revision 1.5  2004/12/14 22:42:22  joerg
allFiles: all sources have a Log CVS keyword at the end now.

*/