Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | /* version.c -- binutils version information |
2 | Copyright 1991, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GNU Binutils. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
18 | Foundation, 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 | ||
27 | const 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 | ||
32 | void | |
33 | print_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, 1998, 1999 Free Software Foundation, Inc.\n")); | |
40 | printf (_("\ | |
41 | This program is free software; you may redistribute it under the terms of\n\ | |
42 | the GNU General Public License. This program has absolutely no warranty.\n")); | |
43 | exit (0); | |
44 | } |