Logo Search packages:      
Sourcecode: qsf version File versions  Download package

version.c

/*
 * Output version information to stdout.
 *
 * Copyright 2005 Andrew Wood, distributed under the Artistic License.
 */

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


/*
 * Display current package version.
 */
void display_version(void)
{
      printf( /* RATS: ignore */ _("%s %s - Copyright(C) %s %s"),
             PROGRAM_NAME, VERSION, COPYRIGHT_YEAR, COPYRIGHT_HOLDER);
      printf("\n%s%s", _("Backends available:"), BACKENDS);

      printf("\n\n");
      printf( /* RATS: ignore */ _("Web site: %s"), PROJECT_HOMEPAGE);
      printf("\n\n");
      printf("%s",
             _("This program is free software, and is being distributed "
             "under the\nterms of the Artistic License."));
      printf("\n\n");
      printf("%s", _
             ("This program is distributed in the hope that it will be useful,\n"
            "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."));
      printf("\n\n");
#ifdef HAVE_GETOPT_LONG
      printf(                           /* RATS: ignore */
                  _
                  ("For more information, please run `%s --license'."),
                  PROGRAM_NAME);
#else
      printf(                           /* RATS: ignore */
                  _("For more information, please run `%s -l'."),
                  PROGRAM_NAME);
#endif
      printf("\n");
}

/* EOF */

Generated by  Doxygen 1.6.0   Back to index