]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* version.c -- binutils version information |
5256a5b0 | 2 | Copyright 1991, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4fb3aee2 | 3 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
5256a5b0 | 4 | Free Software Foundation, Inc. |
252b5132 | 5 | |
d99e9f4d | 6 | This file is part of GNU Binutils. |
252b5132 | 7 | |
d99e9f4d NC |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by | |
32866df7 | 10 | the Free Software Foundation; either version 3, or (at your option) |
d99e9f4d | 11 | any later version. |
252b5132 | 12 | |
d99e9f4d NC |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
252b5132 | 17 | |
d99e9f4d NC |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software | |
32866df7 NC |
20 | Foundation, 51 Franklin Street - Fifth Floor, Boston, |
21 | MA 02110-1301, USA. */ | |
252b5132 | 22 | |
3db64b00 | 23 | #include "sysdep.h" |
252b5132 RH |
24 | #include "bfd.h" |
25 | #include "bucomm.h" | |
26 | ||
32866df7 NC |
27 | /* Print the version number and copyright information, and exit. |
28 | This implements the --version option for the various programs. */ | |
252b5132 RH |
29 | |
30 | void | |
2da42df6 | 31 | print_version (const char *name) |
252b5132 RH |
32 | { |
33 | /* This output is intended to follow the GNU standards document. */ | |
34 | /* xgettext:c-format */ | |
6a8c2b0d | 35 | printf ("GNU %s %s\n", name, BFD_VERSION_STRING); |
0db46eb4 | 36 | printf (_("Copyright 2011 Free Software Foundation, Inc.\n")); |
252b5132 RH |
37 | printf (_("\ |
38 | This program is free software; you may redistribute it under the terms of\n\ | |
32866df7 NC |
39 | the GNU General Public License version 3 or (at your option) any later version.\n\ |
40 | This program has absolutely no warranty.\n")); | |
252b5132 RH |
41 | exit (0); |
42 | } |