/************************************************************
 * INFERNAL - inference of RNA secondary structure alignments
 * Copyright (C) 2002-2003 Washington University, Saint Louis 
 * 
 *     This source code is freely distributed under the terms of the
 *     GNU General Public License. See the files COPYRIGHT and LICENSE
 *     for details.
 ************************************************************/

/* squidcore.c
 * SRE, Sun Jun 20 17:19:04 1999 [Graeme's kitchen]
 * 
 * Core functions for SQUID library.
 * RCS $Id: squidcore.c,v 1.1 2003/01/28 22:04:06 elena Exp $
 */

#include <stdio.h>
#include "version.h"

/* Function: Banner()
 * Date:     SRE, Sun Jun 20 17:19:41 1999 [Graeme's kitchen]
 *
 * Purpose:  Print a package version and copyright banner.
 *           Used by all the main()'s.
 *           
 *           Expects to be able to pick up defined macros:
 *           macro         example
 *           ------        --------------  
 *           PACKAGE       "HMMER"
 *           RELEASE       "2.0.42"
 *           RELEASEDATE   "April 1 1999"
 *           COPYRIGHT     "Copyright (C) 1992-1999 Washington University School of Medicine"
 *           LICENSE       "HMMER is freely distributed under the GNU General Public License (GPL)."
 *           
 *           This gives us a general mechanism to update release information
 *           without changing multiple points in the code; we can also override
 *           SQUID release data with another package's release data (e.g.
 *           HMMER) just by redefining macros.
 * 
 * Args:     fp     - where to print it
 *           banner - one-line program description, e.g.:
 *                    "foobar - make bars from foo with elan" 
 * Returns:  (void)
 */
void
Banner(FILE *fp, char *banner)
{
  fprintf(fp, "%s\n%s %s (%s)\n%s\n%s\n", banner, PACKAGE, RELEASE, RELEASEDATE, COPYRIGHT, LICENSE);
  fprintf(fp, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
}


