[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ${Source-Version} without revision



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



Reply to: