version.c revision 77298
1/* version.c -- binutils version information
2   Copyright 1991, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc.
3
4This file is part of GNU Binutils.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19
20#include <stdio.h>
21#include "bfd.h"
22#include "bucomm.h"
23
24/* This is the version numbers for the binutils.  They all change in
25   lockstep -- it's easier that way. */
26
27const char *program_version = VERSION;
28
29/* Print the version number and copyright information, and exit.  This
30   implements the --version option for the various programs.  */
31
32void
33print_version (name)
34     const char *name;
35{
36  /* This output is intended to follow the GNU standards document.  */
37  /* xgettext:c-format */
38  printf ("GNU %s %s\n", name, program_version);
39  printf (_("Copyright 1997, 98, 99, 2000, 2001 Free Software Foundation, Inc.\n"));
40  printf (_("\
41This program is free software; you may redistribute it under the terms of\n\
42the GNU General Public License.  This program has absolutely no warranty.\n"));
43  exit (0);
44}
45