~indicator-applet-developers/upanel/trunk

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Ted Gould
  • Date: 2010-09-21 21:18:24 UTC
  • Revision ID: ted@gould.cx-20100921211824-1m7fs2goty3x38ao
Autogen the ChangeLog and AUTHORS

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
SUBDIRS = \
3
3
        upanel \
4
4
        tests
 
5
 
 
6
dist-hook:
 
7
        @if test -d "$(top_srcdir)/.bzr"; \
 
8
                then \
 
9
                        echo Creating ChangeLog && \
 
10
                                ( cd "$(top_srcdir)" && \
 
11
                                echo '# Generated by Makefile. Do not edit.'; echo; \
 
12
                                $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \
 
13
                                && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
 
14
                                || (rm -f ChangeLog.tmp; \
 
15
                                        echo Failed to generate ChangeLog >&2 ); \
 
16
        else \
 
17
                        echo Failed to generate ChangeLog: not a branch >&2; \
 
18
        fi
 
19
        @if test -d "$(top_srcdir)/.bzr"; \
 
20
                then \
 
21
                        echo Creating AUTHORS && \
 
22
                                ( cd "$(top_srcdir)" && \
 
23
                                echo '# Generated by Makefile. Do not edit.'; echo; \
 
24
                                $(top_srcdir)/missing --run  bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
 
25
                                && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
 
26
                                || (rm -f AUTHORS.tmp; \
 
27
                                        echo Failed to generate AUTHORS >&2 ); \
 
28
        else \
 
29
                        echo Failed to generate AUTHORS: not a branch >&2; \
 
30
        fi