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