[gnome-news/wip/jfelder/meson-support: 2/5] build: Do not generate authors automatically



commit b08e5ed2c2905e145e9b222f5741a015360bb769
Author: Jean Felder <jean felder gmail com>
Date:   Fri Jan 11 23:21:03 2019 +0100

    build: Do not generate authors automatically
    
    Use a list in about.py.

 Makefile.am                   | 18 ------------------
 data/gnome-news.gresource.xml |  1 -
 gnomenews/about.py            | 12 +++++++++++-
 3 files changed, 11 insertions(+), 20 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a237104..9976ac8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,6 @@ SUBDIRS = data gnomenews po
 bin_SCRIPTS = gnome-news
 
 EXTRA_DIST = \
-       AUTHORS \
        gnome-news.in \
        VERSION.in \
        $(NULL)
@@ -35,23 +34,6 @@ GITIGNOREFILES = \
        gnomenews/__pycache__ \
        $(NULL)
 
-dist-hook: AUTHORS
-
-AUTHORS:
-       @if test -d "$(srcdir)/.git"; \
-       then \
-               echo Creating $@ && \
-               ( cd "$(top_srcdir)" && \
-                 echo '# Generated by Makefile. Do not edit.'; echo; \
-                 git log --no-merges --pretty=format:"%an" \
-                 | sort | uniq ) > $@.tmp \
-               && mv -f $@.tmp $@ \
-               || ( rm -f $@.tmp ; \
-                    echo Failed to generate $@ >&2 ); \
-       fi
-
-.PHONY: AUTHORS
-
 gnome-news: gnome-news.in Makefile
        $(AM_V_GEN)sed                                          \
                -e s!\@srcdir\@!$(abs_top_srcdir)!      \
diff --git a/data/gnome-news.gresource.xml b/data/gnome-news.gresource.xml
index 7b5ea75..4541227 100644
--- a/data/gnome-news.gresource.xml
+++ b/data/gnome-news.gresource.xml
@@ -3,7 +3,6 @@
   <gresource prefix="/org/gnome/News">
     <file compressed="true" alias="VERSION">../VERSION</file>
     <file compressed="true" alias="ARTISTS">../ARTISTS</file>
-    <file compressed="true" alias="AUTHORS">../AUTHORS</file>
     <file compressed="true" preprocess="xml-stripblanks">gtk/menus.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">ui/empty-view.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">ui/headerbar.ui</file>
diff --git a/gnomenews/about.py b/gnomenews/about.py
index d29e931..e1abd90 100644
--- a/gnomenews/about.py
+++ b/gnomenews/about.py
@@ -15,6 +15,16 @@
 
 from gi.repository import Gtk, Gio
 
+AUTHORS = [
+    "Felipe Borges",
+    "Michael Catanzaro",
+    "Carlos Garnacho",
+    "Igor Gnatenko",
+    "Patrick Grififis",
+    "Yosef Or Boczko",
+    "Vadim Rutkovsky",
+]
+
 
 class AboutDialog(Gtk.AboutDialog):
     def __init__(self, parent):
@@ -23,7 +33,7 @@ class AboutDialog(Gtk.AboutDialog):
         self.set_modal(True)
         self.set_transient_for(parent)
         self.set_artists(self._read_file("ARTISTS"))
-        self.set_authors(self._read_file("AUTHORS"))
+        self.set_authors(AUTHORS)
         self.set_copyright("Copyright © 2015 GNOME Foundation")
         self.set_license_type(Gtk.License.GPL_3_0)
         self.set_version(self._read_file("VERSION")[0])


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