Commit 7db50e5d authored by Iñigo Martínez's avatar Iñigo Martínez Committed by Debarshi Ray

build: Make the photos-generate-about script more self-contained

!48
parent e9d9814d
......@@ -498,10 +498,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 \
)
......
......@@ -29,6 +29,7 @@
echo "#endif" &&
exit
echo "#include \"photos-about-data.h\""
echo "const gchar *PHOTOS_ARTISTS[] = {"
while read line; do
[ "$(echo "$line" | cut -c1)" = "#" ] &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment