[gnome-photos/wip/inigomartinez/meson: 2/5] build: Modify photos-generate-about script
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/inigomartinez/meson: 2/5] build: Modify photos-generate-about script
- Date: Tue, 12 Sep 2017 17:37:57 +0000 (UTC)
commit eb1b5b67f988ee7073956e9bfabd118a5234197e
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Thu Aug 31 12:04:05 2017 +0200
build: Modify photos-generate-about script
This patch modifies photos-generate-about script to include the
header include file from it when it tries to generate the body.
https://bugzilla.gnome.org/show_bug.cgi?id=787094
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 60968ad..340e6b4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -489,10 +489,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]