1 /* version.c -- binutils version information 2 Copyright 1991, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 4 Free Software Foundation, Inc. 5 6 This file is part of GNU Binutils. 7 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 10 the Free Software Foundation; either version 3, or (at your option) 11 any later version. 12 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. 17 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 20 Foundation, 51 Franklin Street - Fifth Floor, Boston, 21 MA 02110-1301, USA. */ 22 23 #include "sysdep.h" 24 #include "bfd.h" 25 #include "bucomm.h" 26 27 /* Print the version number and copyright information, and exit. 28 This implements the --version option for the various programs. */ 29 30 void 31 print_version (const char *name) 32 { 33 /* This output is intended to follow the GNU standards document. */ 34 /* xgettext:c-format */ 35 printf ("GNU %s %s\n", name, BFD_VERSION_STRING); 36 printf (_("Copyright 2012 Free Software Foundation, Inc.\n")); 37 printf (_("\ 38 This program is free software; you may redistribute it under the terms of\n\ 39 the GNU General Public License version 3 or (at your option) any later version.\n\ 40 This program has absolutely no warranty.\n")); 41 exit (0); 42 } 43