diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/deb/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile index 1f941b44..747a2576 100644 --- a/pkg/deb/Makefile +++ b/pkg/deb/Makefile @@ -175,9 +175,16 @@ debuild-%: debuild/unit_$(VERSION).orig.tar.gz ../../docs/changes.xml mkdir $@/$(SRCDIR)/debian/source echo '3.0 (quilt)' > $@/$(SRCDIR)/debian/source/format cd ../../docs && make ../build/unit-$(MODULE_SUFFIX_$*).deb-changelog +ifneq ($(DEFAULT_VERSION)$(DEFAULT_RELEASE), $(VERSION)$(RELEASE)) + cat ../../build/unit-$(MODULE_SUFFIX_$*).deb-changelog | sed \ + -e "s/unit-$* ($(DEFAULT_VERSION)-$(DEFAULT_RELEASE)~/unit-$* ($(VERSION)-$(RELEASE)~/" \ + -e "s#%%CODENAME%%#$(CODENAME)#g" \ + > $@/$(SRCDIR)/debian/changelog +else cat ../../build/unit-$(MODULE_SUFFIX_$*).deb-changelog | sed \ -e "s#%%CODENAME%%#$(CODENAME)#g" \ > $@/$(SRCDIR)/debian/changelog +endif cp debian/copyright debuild-$*/$(SRCDIR)/debian/ @{ \ set -e ; \ |