]> git.proxmox.com Git - mirror_ovs.git/blob - debian/automake.mk
debian: Generate authorship in debian/copyright from AUTHORS.
[mirror_ovs.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/rules \
42 debian/rules.modules
43
44 check-debian-changelog-version:
45 @if $(FGREP) '($(VERSION))' $(srcdir)/debian/changelog >/dev/null; \
46 then \
47 :; \
48 else \
49 echo "Update debian/changelog to mention version $(VERSION)"; \
50 exit 1; \
51 fi
52 ALL_LOCAL += check-debian-changelog-version
53 DIST_HOOKS += check-debian-changelog-version
54
55 $(srcdir)/debian/copyright: AUTHORS debian/copyright.in
56 { sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in; \
57 sed '1,/^$$/d' $(srcdir)/AUTHORS | \
58 sed -n -e '/^$$/q' -e 's/^/ /p'; \
59 sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in; \
60 } > $@
61
62 DISTCLEANFILES += debian/copyright