Commit 36b4ddcb authored by Debarshi Ray's avatar Debarshi Ray

build: Track AUTHORS in Git and manually trigger updates

Generating AUTHORS during the build breaks 'ninja dist'. So, until
there's a better alternative the file has to be manually updated using
'make update-authors', or something equivalent in Meson parlance.

!48
parent e1558cb3
# Generated — do not edit.
Abhinav Kumar
Adam Dingle
Alessandro Bono
Allan Day
Álvaro Peña
Ankriti Sachan
Arnel A. Borja
Aruna Sankaranarayanan
Chunyang Xu
Cosimo Cecchi
Debarshi Ray
Ekta Nandwani
Emanuele Aina
Emmanuele Bassi
Florian Müllner
Ignacio Casal Quinteiro
Iñigo Martínez
Jakub Steiner
Jan-Michael Brummer
Jeremy Bicha
Jonathan Kang
Kartikeya Sharma
Katarina Gresova
Khaled Hosny
Marek Chalupa
Matthias Clasen
Michael Catanzaro
Neha Yadav
Pavel Grunt
Petr Štětka
Pierre-Yves Luyten
Piotr Drąg
Pranav Kant
Rafael Fonseca
Rashi Sah
Saurav Agarwalla
Scott Cohen
Shivam Tripathi
Siddha Ganju
Sparsh Paliwal
Timm Bäder
Ting-Wei Lan
Umang Jain
William Jon McCann
Yanko Kaneti
Yi-Soo An
Yosef Or Boczko
......@@ -11,13 +11,10 @@ photosdoc_DATA = \
README \
$(NULL)
# There is no way to generate the AUTHORS in tarball builds
EXTRA_DIST = \
$(photosdoc_DATA) \
AUTHORS \
$(NULL)
# We don't want to clean the AUTHORS in tarball builds
CLEANFILES = \
$(NULL)
......@@ -28,7 +25,6 @@ MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_GETTEXT) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(srcdir)/AUTHORS \
$(srcdir)/config.h.in \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
......@@ -39,19 +35,17 @@ GITIGNOREFILES = \
config \
$(NULL)
AUTHORS:
update-authors:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating $@ && \
echo Updating AUTHORS && \
( cd "$(top_srcdir)" && \
echo '# Generated — do not edit.'; echo; \
git log --no-merges --pretty=format:"%an" src \
| sort | uniq ) > $@.tmp \
&& mv -f $@.tmp $@ \
|| ( rm -f $@.tmp ; \
echo Failed to generate $@ >&2 ); \
| sort | uniq ) > AUTHORS.tmp \
&& mv -f AUTHORS.tmp AUTHORS \
|| ( rm -f AUTHORS.tmp ; \
echo Failed to generate AUTHORS >&2 ); \
fi
.PHONY: AUTHORS
-include $(top_srcdir)/git.mk
......@@ -486,20 +486,20 @@ CLEANFILES = \
photos-about-data.h: stamp-photos-about-data.h
@true
stamp-photos-about-data.h: $(top_srcdir)/ARTISTS $(top_builddir)/AUTHORS
stamp-photos-about-data.h: $(top_srcdir)/ARTISTS $(top_srcdir)/AUTHORS
$(AM_V_GEN) ( \
( $(srcdir)/photos-generate-about \
--header $(top_builddir) $(top_srcdir) \
--header $(top_srcdir) \
) >> xgen-ah \
&& ( cmp -s xgen-ah photos-about-data.h || cp xgen-ah photos-about-data.h ) \
&& rm -f xgen-ah \
&& echo timestamp > $(@F) \
)
photos-about-data.c: $(top_srcdir)/ARTISTS $(top_builddir)/AUTHORS
photos-about-data.c: $(top_srcdir)/ARTISTS $(top_srcdir)/AUTHORS
$(AM_V_GEN) ( \
( $(srcdir)/photos-generate-about \
--body $(top_builddir) $(top_srcdir) \
--body $(top_srcdir) \
) >> xgen-ac \
&& ( cmp -s xgen-ac photos-about-data.c || cp xgen-ac photos-about-data.c ) \
&& rm -f xgen-ac \
......
......@@ -38,7 +38,7 @@ while read line; do
[ ${#line} -eq 0 ] &&
continue
echo " \"$line\","
done < $3/ARTISTS
done < $2/ARTISTS
echo " NULL"
echo "};"
......
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