Re: [med-svn] r3062 - trunk/packages/dicom3tools/trunk/debian
On Thu, 29 Jan 2009, Charles Plessy wrote:
I'd like to get rid of get-orig-source, I keep on forgetting to
manually modify the version code in get-orig-source any time there is
a new release.
there are many ways to get the version number from the changelog.
In the blends-dev package I use:
version="(>= `dpkg-parsechangelog | grep "^Version:" | sed -e "s/^Version:[[:space:]]\+\([\.0-9]*\)[[:space:]]*/\1/"`)"
tar --create --gzip --file ../biofox_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../biofox-$(DEB_UPSTREAM_VERSION)
(this example needs CDBS)
Grepping the cdbs code for DEB_UPSTREAM_VERSION might reveal an alternate
method to find out how to do this (and become independant from
inclduing cdbs explicitely).
Regards from Trondheim