[Pkg-samba-maint] r1698 - trunk/ctdb/debian

Steve Langasek vorlon at debian.org
Mon Jan 21 18:34:48 UTC 2008


Hi Mathieu,

On Sun, Jan 20, 2008 at 12:55:57PM +0000, mparent-guest at alioth.debian.org wrote:
> Added: trunk/ctdb/debian/build-orig.sh
> ===================================================================
> --- trunk/ctdb/debian/build-orig.sh	                        (rev 0)
> +++ trunk/ctdb/debian/build-orig.sh	2008-01-20 12:55:57 UTC (rev 1698)
> @@ -0,0 +1,8 @@
> +#!/bin/sh
> +# Build a source tarball for ctdb
> +rsync -avz samba.org::ftp/unpacked/ctdb .
> +CTDB_VERSION=0~`cat ctdb/.bzr/checkout/last-revision | awk -F '-' '{print $2}'`
> +mv ctdb ctdb-$CTDB_VERSION
> +cd ctdb-$CTDB_VERSION && ./autogen.sh && cd ..
> +
> +tar -czf ctdb_$CTDB_VERSION.orig.tar.gz ctdb-$CTDB_VERSION

It's customary to do this kind of thing as a "get-orig-source" target in
debian/rules, as per Policy 4.9.  Perhaps you could convert to that?

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org



More information about the Pkg-samba-maint mailing list