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