[gnome-photos/wip/inigomartinez/meson: 2/4] build: Modified photos-generate-about script



commit 164774cccec14db9db7f6be66635011831f690bc
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Aug 31 12:04:05 2017 +0200

    build: Modified photos-generate-about script
    
    photos-generate-about script has been modified to include the
    header include file from it when it tries to generate the body.

 src/Makefile.am           |    5 ++---
 src/photos-generate-about |    1 +
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 8f9efee..39a538a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -485,10 +485,9 @@ stamp-photos-about-data.h: $(top_srcdir)/ARTISTS $(top_builddir)/AUTHORS
 
 photos-about-data.c: $(top_srcdir)/ARTISTS $(top_builddir)/AUTHORS
        $(AM_V_GEN) ( \
-               echo "#include \"photos-about-data.h\"" > xgen-ac \
-               && ( $(srcdir)/photos-generate-about \
+               ( $(srcdir)/photos-generate-about \
                        --body $(top_builddir) $(top_srcdir) \
-                   ) >> xgen-ac \
+                ) >> xgen-ac \
                && ( cmp -s xgen-ac photos-about-data.c || cp xgen-ac photos-about-data.c ) \
                && rm -f xgen-ac \
        )
diff --git a/src/photos-generate-about b/src/photos-generate-about
index 251e408..7d3369d 100755
--- a/src/photos-generate-about
+++ b/src/photos-generate-about
@@ -31,6 +31,7 @@
     echo "#endif" &&
     exit
 
+echo "#include \"photos-about-data.h\""
 echo "const gchar *PHOTOS_ARTISTS[] = {"
 while read line; do
     [ "$(echo "$line" | cut -c1)" = "#" ] &&


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