sim: ppc: include copyright & license in --version
authorMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2022 13:15:19 +0000 (20:15 +0700)
committerMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2022 13:15:29 +0000 (20:15 +0700)
This makes it match the other sim run programs and GNU tools.

sim/ppc/psim.c

index acc40edf8aaf8be36290f6dd3009b9c95bc92d60..863e2ed968898c94c1fd904054b5cc7aaa679fcb 100644 (file)
@@ -359,6 +359,11 @@ psim_options(device *root,
          {
            extern const char version[];
            printf ("GNU simulator %s%s\n", PKGVERSION, version);
+           printf ("Copyright (C) 2022 Free Software Foundation, Inc.\n");
+           printf ( "\
+License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>\
+\nThis is free software: you are free to change and redistribute it.\n\
+There is NO WARRANTY, to the extent permitted by law.\n");
            if (kind == SIM_OPEN_STANDALONE)
              exit (0);
            else