[gnome-text-editor] app: add license/copyright information to --version



commit 6486fda55ab4728ce2b4a65f18049aa9f73643ef
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 10 13:08:25 2022 -0700

    app: add license/copyright information to --version
    
    Ensure that some license/copyright information is available with --version,
    including a reference on how to get the actual license.

 src/main.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index 848905f..82a976c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -65,6 +65,13 @@ check_early_opts (int        *argc,
 #ifdef HAVE_ENCHANT
       g_printerr ("        Enchant: %s\n", enchant_get_version ());
 #endif
+
+      g_printerr ("\n\
+Copyright 2020-2022 Christian Hergert, et al.\n\
+This is free software; see the source for copying conditions. There is NO\n\
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
+");
+
       exit (EXIT_SUCCESS);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]