sim: ppc: include copyright & license in --version

Message ID 20221103131546.9333-1-vapier@gentoo.org
State Committed
Commit 75bed973c865be279cc0ab390372eab391b2541a
Headers
Series sim: ppc: include copyright & license in --version |

Commit Message

Mike Frysinger Nov. 3, 2022, 1:15 p.m. UTC
  This makes it match the other sim run programs and GNU tools.
---
 sim/ppc/psim.c | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index acc40edf8aaf..863e2ed96889 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -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