Jérôme Marant <[EMAIL PROTECTED]> wrote:
> Bartosz Fenski aka fEnIo <[EMAIL PROTECTED]> writes:
>> Is there any variable similar to ${Source-Version} which would allow me to
>> use version of the upstream sources in control file?
[...]
> Use dpkg-parsechangelog along with sed to get the upstream from
> the debian version.
> Then use dpkg-gencontrol -VUpstream-Version=$(upstream_version) 

Indeed. This snippet in deian/rules works for me:
UPSTREAMVERSION :=      $(shell dpkg-parsechangelog | sed -n '/^Version: 
/{s/^Version: \(.\+\)-[^-]\+/\1/;p;}')
[...]
dh_gencontrol -i -- -VUpstream-Version=$(UPSTREAMVERSION)
[...]
dh_gencontrol -a -- -VUpstream-Version=$(UPSTREAMVERSION)
             cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to