version.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* version.c -- binutils version information
  2. Copyright (C) 1991-2022 Free Software Foundation, Inc.
  3. This file is part of GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #include "sysdep.h"
  17. #include "bfd.h"
  18. #include "bucomm.h"
  19. /* Print the version number and copyright information, and exit.
  20. This implements the --version option for the various programs. */
  21. void
  22. print_version (const char *name)
  23. {
  24. /* This output is intended to follow the GNU standards document. */
  25. /* xgettext:c-format */
  26. printf ("GNU %s %s\n", name, BFD_VERSION_STRING);
  27. printf (_("Copyright (C) 2022 Free Software Foundation, Inc.\n"));
  28. printf (_("\
  29. This program is free software; you may redistribute it under the terms of\n\
  30. the GNU General Public License version 3 or (at your option) any later version.\n\
  31. This program has absolutely no warranty.\n"));
  32. exit (0);
  33. }