Commit 5a5876b5 authored by Mathieu Bridon's avatar Mathieu Bridon

Automatically generate the AUTHORS file

It was inaccurate, as it failed to credit Benau for his past work.

Making it automatically generated at distcheck time ensures this
won't happen again.
parent 4ec6d2b4
......@@ -43,3 +43,4 @@ test-suite.log
tests/run_tests
tests/run_tests.log
tests/run_tests.trs
AUTHORS
Mathieu Bridon <bochecha@fedoraproject.org>
......@@ -89,6 +89,17 @@ tests/run_tests: tests/run_tests.in
chmod +x $@
# -- Common --------------------------
AUTHORS:
@if test -d "$(srcdir)/.git"; then \
echo Creating $@ && \
( cd "$(top_srcdir)" && \
echo -e '# Generated by Makefile. Do not edit.\n#'; \
echo -e '# IBus Cangjie was written by these people:\n'; \
git log --no-merges --pretty=format:"%an <%ae>" \
| sort | uniq ) > $@.tmp && mv -f $@.tmp $@ \
|| ( rm -f $@.tmp ; echo Failed to generate $@ >&2 ); \
fi
CLEANFILES = \
data/cangjie.xml \
data/cangjie.xml.in \
......@@ -126,3 +137,5 @@ superclean:
rm -fr po/Makefile po/Makefile.in po/Makefile.in.in \
po/Makevars.template po/POTFILES po/Rules-quot po/*.sed \
po/*.header po/*.sin po/stamp-it po/.intltool-merge-cache
.PHONY: AUTHORS
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