133965Sjdp/* version.c -- binutils version information
2218822Sdim   Copyright 1991, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
3218822Sdim   2007 Free Software Foundation, Inc.
433965Sjdp
5130561Sobrien   This file is part of GNU Binutils.
633965Sjdp
7130561Sobrien   This program is free software; you can redistribute it and/or modify
8130561Sobrien   it under the terms of the GNU General Public License as published by
9130561Sobrien   the Free Software Foundation; either version 2, or (at your option)
10130561Sobrien   any later version.
1133965Sjdp
12130561Sobrien   This program is distributed in the hope that it will be useful,
13130561Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
14130561Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15130561Sobrien   GNU General Public License for more details.
1633965Sjdp
17130561Sobrien   You should have received a copy of the GNU General Public License
18130561Sobrien   along with this program; if not, write to the Free Software
19218822Sdim   Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
2033965Sjdp
21218822Sdim#include "sysdep.h"
2233965Sjdp#include "bfd.h"
2333965Sjdp#include "bucomm.h"
2433965Sjdp
2533965Sjdp/* Print the version number and copyright information, and exit.  This
2633965Sjdp   implements the --version option for the various programs.  */
2733965Sjdp
2833965Sjdpvoid
29130561Sobrienprint_version (const char *name)
3033965Sjdp{
3133965Sjdp  /* This output is intended to follow the GNU standards document.  */
3260484Sobrien  /* xgettext:c-format */
3389857Sobrien  printf ("GNU %s %s\n", name, BFD_VERSION_STRING);
34218822Sdim  printf (_("Copyright 2007 Free Software Foundation, Inc.\n"));
3560484Sobrien  printf (_("\
3633965SjdpThis program is free software; you may redistribute it under the terms of\n\
3760484Sobrienthe GNU General Public License.  This program has absolutely no warranty.\n"));
3833965Sjdp  exit (0);
3933965Sjdp}
40