Le Tue, Jan 27, 2009 at 12:46:57PM +0100, Mathieu Malaterre a écrit :
> 
>   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.

Hi Mathieu,

there are many ways to get the version number from the changelog. In packages
such as biofox, glam2, last-align, I do not use a script but leave everything
in debian/rules:

http://svn.debian.org/viewsvn/debian-med/trunk/packages/biofox/trunk/debian/rules?rev=3050&view=auto

get-orig-source:
        [ -f ../biofox-$(DEB_UPSTREAM_VERSION)-*.xpi ] || uscan --force-download
        mkdir ../biofox-$(DEB_UPSTREAM_VERSION)
        unzip ../biofox-$(DEB_UPSTREAM_VERSION)-*.xpi 
-d../biofox-$(DEB_UPSTREAM_VERSION)
        tar --create --gzip --file 
../biofox_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../biofox-$(DEB_UPSTREAM_VERSION)

(this example needs CDBS)

Have a nice day,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


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

Reply via email to