summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Metzler <ametzler@debian.org>2011-10-08 11:02:22 +0000
committerAndreas Metzler <ametzler@debian.org>2011-10-08 11:02:22 +0000
commitfef08d9f2373956d8361b8ccd7881afef41e3b0a (patch)
tree5de16d27b125ae5514de2e6210a23a6e6aa4678d
parent78a3d3fe1dc7626a094f99b882e80fdb33f6d255 (diff)
downloadexim4-fef08d9f2373956d8361b8ccd7881afef41e3b0a.tar.gz
get rid of second dpkg-parsechangelog
svn path=/exim/trunk/; revision=2666
-rwxr-xr-xdebian/rules5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index d87d6df..37e1826 100755
--- a/debian/rules
+++ b/debian/rules
@@ -105,7 +105,8 @@ BDIRS=$(addprefix b-,$(extradaemonpackages) $(basedaemonpackages))
# get upstream-version from debian/changelog, i.e. anything until the first -
-UPSTREAMVERSION := $(shell dpkg-parsechangelog | sed -n '/^Version: /{s/^Version: \(.\+\)-[^-]\+/\1/;p;}')
+DEBVERSION := $(shell dpkg-parsechangelog | sed -n '/^Version: /s/^Version: //p')
+UPSTREAMVERSION := $(shell echo $(DEBVERSION) | sed -n 's/\(.\+\)-[^-]\+/\1/p')
MTACONFLICTS := $(shell cat $(DEBIAN)/mtalist)
# set up build directory b-exim4-daemon-heavy/
@@ -346,7 +347,7 @@ installbase-stamp: b-exim4-daemon-light/build-$(buildname)/exim debian/README.De
# if you change anything here, you will have to change
# config-custom/debian/rules as well
sed -e \
- "s/^UPEX4C_version=\"\"/UPEX4C_version=\"`dpkg-parsechangelog | sed -n '/^Version: /s/^Version: //p'`\"/" \
+ "s/^UPEX4C_version=\"\"/UPEX4C_version=\"$(DEBVERSION)\"/" \
< $(DEBIAN)/debconf/update-exim4.conf \
> $(DEBIAN)/exim4-config/usr/sbin/update-exim4.conf
chmod 755 $(DEBIAN)/exim4-config/usr/sbin/update-exim4.conf