diff options
author | James Laska <jlaska@ansible.com> | 2015-04-09 15:30:24 +0200 |
---|---|---|
committer | James Laska <jlaska@ansible.com> | 2015-04-09 15:30:56 +0200 |
commit | bbc05a2cf5d0c72c51f62d28b4565f6da2796c1d (patch) | |
tree | dc5710f0538fe882ec5c3a45e988a2cb04a5faeb /Makefile | |
parent | Merge pull request #10642 from gaomd/patch-1 (diff) | |
download | ansible-bbc05a2cf5d0c72c51f62d28b4565f6da2796c1d.tar.xz ansible-bbc05a2cf5d0c72c51f62d28b4565f6da2796c1d.zip |
Improve generation of debian changelog
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,6 +53,7 @@ DEBUILD_BIN ?= debuild DEBUILD_OPTS = --source-option="-I" DPUT_BIN ?= dput DPUT_OPTS ?= +DEB_DATE := $(shell date +"%a, %d %b %Y %T %z") ifeq ($(OFFICIAL),yes) DEB_RELEASE = $(RELEASE)ppa # Sign OFFICIAL builds using 'DEBSIGN_KEYID' @@ -217,7 +218,7 @@ debian: sdist mkdir -p deb-build/$${DIST} ; \ tar -C deb-build/$${DIST} -xvf dist/$(NAME)-$(VERSION).tar.gz ; \ cp -a packaging/debian deb-build/$${DIST}/$(NAME)-$(VERSION)/ ; \ - sed -ie "s#^$(NAME) (\([^)]*\)) \([^;]*\);#ansible (\1-$(DEB_RELEASE)~$${DIST}) $${DIST};#" deb-build/$${DIST}/$(NAME)-$(VERSION)/debian/changelog ; \ + sed -ie "s|%VERSION%|$(VERSION)|g;s|%RELEASE%|$(DEB_RELEASE)|;s|%DIST%|$${DIST}|g;s|%DATE%|$(DEB_DATE)|g" deb-build/$${DIST}/$(NAME)-$(VERSION)/debian/changelog ; \ done deb: debian |