Back to index

cell-binutils  2.17cvs20070401
version.c
Go to the documentation of this file.
00001 /* version.c -- binutils version information
00002    Copyright 1991, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
00003    2007 Free Software Foundation, Inc.
00004 
00005    This file is part of GNU Binutils.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include <stdio.h>
00022 #include "bfd.h"
00023 #include "bucomm.h"
00024 
00025 /* Print the version number and copyright information, and exit.  This
00026    implements the --version option for the various programs.  */
00027 
00028 void
00029 print_version (const char *name)
00030 {
00031   /* This output is intended to follow the GNU standards document.  */
00032   /* xgettext:c-format */
00033   printf ("GNU %s %s\n", name, BFD_VERSION_STRING);
00034   printf (_("Copyright 2007 Free Software Foundation, Inc.\n"));
00035   printf (_("\
00036 This program is free software; you may redistribute it under the terms of\n\
00037 the GNU General Public License.  This program has absolutely no warranty.\n"));
00038   exit (0);
00039 }