version.c revision 130561
15622Swollman/* version.c -- binutils version information 25622Swollman Copyright 1991, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 350488Speter Free Software Foundation, Inc. 45622Swollman 55622Swollman This file is part of GNU Binutils. 65622Swollman 75622Swollman This program is free software; you can redistribute it and/or modify 85622Swollman it under the terms of the GNU General Public License as published by 95622Swollman the Free Software Foundation; either version 2, or (at your option) 105622Swollman any later version. 115622Swollman 125622Swollman This program is distributed in the hope that it will be useful, 135622Swollman but WITHOUT ANY WARRANTY; without even the implied warranty of 145622Swollman MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 155622Swollman GNU General Public License for more details. 165622Swollman 175622Swollman You should have received a copy of the GNU General Public License 185622Swollman along with this program; if not, write to the Free Software 195622Swollman Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 205622Swollman 215622Swollman#include <stdio.h> 225622Swollman#include "bfd.h" 235622Swollman#include "bfdver.h" 245622Swollman#include "bucomm.h" 255622Swollman 265622Swollman/* Print the version number and copyright information, and exit. This 275622Swollman implements the --version option for the various programs. */ 285622Swollman 2922176Sjoergvoid 305622Swollmanprint_version (const char *name) 315622Swollman{ 3222176Sjoerg /* This output is intended to follow the GNU standards document. */ 335622Swollman /* xgettext:c-format */ 345622Swollman printf ("GNU %s %s\n", name, BFD_VERSION_STRING); 355622Swollman printf (_("Copyright 2004 Free Software Foundation, Inc.\n")); 365622Swollman printf (_("\ 375622SwollmanThis program is free software; you may redistribute it under the terms of\n\ 385622Swollmanthe GNU General Public License. This program has absolutely no warranty.\n")); 395622Swollman exit (0); 405622Swollman} 415622Swollman