On Sat, 10 Dec 2005, Jérôme Marant wrote:
> Use dpkg-parsechangelog along with sed to get the upstream from
> the debian version.
> Then use dpkg-gencontrol -VUpstream-Version=$(upstream_version) 

Yes, something like (makefile syntax):

# Version information
VERSION?=$(shell dpkg-parsechangelog | grep -E "^Version:" | tr -d ' \t' | cut 
-d ':' -f 2-)

UPSTREAM_VERSION:=$(shell echo "$(VERSION)" | sed -e 's/-[^-]\+$$//')

Be my guest to change the first line to a single sed command.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


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

Reply via email to