AUTHORS: Add Valient Gough.
[openvswitch] / debian / automake.mk
1 EXTRA_DIST += \
2         debian/changelog \
3         debian/compat \
4         debian/control \
5         debian/control.modules.in \
6         debian/copyright \
7         debian/copyright.in \
8         debian/dirs \
9         debian/openvswitch-common.dirs \
10         debian/openvswitch-common.install \
11         debian/openvswitch-common.manpages \
12         debian/openvswitch-controller.README.Debian \
13         debian/openvswitch-controller.default \
14         debian/openvswitch-controller.dirs \
15         debian/openvswitch-controller.init \
16         debian/openvswitch-controller.install \
17         debian/openvswitch-controller.manpages \
18         debian/openvswitch-controller.postinst \
19         debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in \
20         debian/openvswitch-datapath-source.README.Debian \
21         debian/openvswitch-datapath-source.copyright \
22         debian/openvswitch-datapath-source.dirs \
23         debian/openvswitch-datapath-source.install \
24         debian/openvswitch-ipsec.dirs \
25         debian/openvswitch-ipsec.init \
26         debian/openvswitch-ipsec.install \
27         debian/openvswitch-pki.postinst \
28         debian/openvswitch-switch.README.Debian \
29         debian/openvswitch-switch.dirs \
30         debian/openvswitch-switch.init \
31         debian/openvswitch-switch.install \
32         debian/openvswitch-switch.logrotate \
33         debian/openvswitch-switch.manpages \
34         debian/openvswitch-switch.postinst \
35         debian/openvswitch-switch.postrm \
36         debian/openvswitch-switch.template \
37         debian/ovs-bugtool \
38         debian/ovs-bugtool.8 \
39         debian/ovs-monitor-ipsec \
40         debian/python-openvswitch.dirs \
41         debian/python-openvswitch.install \
42         debian/rules \
43         debian/rules.modules
44
45 check-debian-changelog-version:
46         @DEB_VERSION=`echo '$(VERSION)' | sed 's/pre/~pre/'`;                \
47         if $(FGREP) '($(DEB_VERSION)' $(srcdir)/debian/changelog >/dev/null; \
48         then                                                                 \
49           :;                                                                 \
50         else                                                                 \
51           echo "Update debian/changelog to mention version $(VERSION)";      \
52           exit 1;                                                            \
53         fi
54 ALL_LOCAL += check-debian-changelog-version
55 DIST_HOOKS += check-debian-changelog-version
56
57 $(srcdir)/debian/copyright: AUTHORS debian/copyright.in
58         { sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in;   \
59           sed '1,/^$$/d' $(srcdir)/AUTHORS |                               \
60                 sed -n -e '/^$$/q' -e 's/^/  /p';                          \
61           sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;           \
62         } > $@
63
64 DISTCLEANFILES += debian/copyright