]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Populate AUTHORS when distribute
authorSahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Thu, 5 Jun 2014 15:31:08 +0000 (17:31 +0200)
committerSahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Thu, 5 Jun 2014 15:33:42 +0000 (17:33 +0200)
Adds a complete list of contributors in a
distributed package.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Makefile.am

index eb6ea2937d56ff337272caf934373fa734094c84..be230d21dd74e1b11dcf080681cbdbfb1027b484 100644 (file)
@@ -59,3 +59,10 @@ install-deps:
        else \
          sudo yum -y install `cat deps.rpm.txt`; \
        fi
+
+dist-hook:
+#      Generates the full list of contributors
+       if test -d $(srcdir)/.git; then \
+         cd $(srcdir); \
+         git log --format='%aN <%aE>' | sort -u >$(distdir)/AUTHORS; \
+       fi