Modernize CDBS use: Let CDBS resolve if build is targeted experimental.
Jonas Smedegaard
7 years ago
41 | 41 | # * Switch git packaging branch |
42 | 42 | # * Track any release (else only current branch) |
43 | 43 | ifneq (,$(DEB_MAINTAINER_MODE)) |
44 | experimental := $(strip $(if \ | |
45 | $(shell dpkg-parsechangelog \ | |
46 | | grep -x 'Distribution: \(experimental\|UNRELEASED\)'),\ | |
47 | yes)) | |
48 | watch-limit = $(if $(experimental),,$(pkgbranch)\\.) | |
49 | debian-branch = $(if $(experimental),master,master-$(pkgbranch)) | |
44 | watch-limit = $(if $(DEB_SUITE_EXP),,$(pkgbranch)\\.) | |
45 | debian-branch = $(if $(DEB_SUITE_EXP),master,master-$(pkgbranch)) | |
50 | 46 | clean:: |
51 | 47 | perl -i -pe 's/\([\d.\\]*\.\*\)/($(watch-limit).*)/' \ |
52 | 48 | debian/watch |