prepare script (was Re: upload netpanzer and netpanzer-data)

Gonéri Le Bouder goneri at rulezlan.org
Tue Mar 21 13:12:12 UTC 2006


On Tuesday 21 March 2006 13:54, you wrote:
> > I took a look over the script and saw this can be used indeed if a
> > cleverer aproach is used:
> >
> > --- netpanzer.sh        Tue Mar 21 14:40:44 2006
> > +++ netpanzer-new.sh    Tue Mar 21 14:45:54 2006
> > @@ -4,6 +4,7 @@
> >  RELEASE="0.8+svn20060319"
>
> err, this won't work. should have been:
>
> --- netpanzer.sh	Tue Mar 21 14:40:44 2006
> +++ netpanzer-new.sh	Tue Mar 21 14:53:23 2006
> @@ -2,8 +2,10 @@
>
>  BUILDDIR=`pwd`
>  RELEASE="0.8+svn20060319"
> +DEBRELEASE="0.8+svn20060319-1"
>  TARBALL_NETPANZER="netpanzer_$RELEASE.orig.tar.gz"
>  TARBALL_NETPANZERDATA="netpanzer-data_$RELEASE.orig.tar.gz"
> +# this tarballs should be placed in the alioth ftp space!
> 
> URL_NETPANZER="http://goneri2.free.fr/netpanzer/netpanzer-0.8+svn20060319.t
>ar.gz"
> URL_NETPANZERDATA="http://goneri2.free.fr/netpanzer/netpanzer-data-0.8+svn2
>0060319.tar.gz"
>
> @@ -39,11 +41,11 @@
>  #mv boson-code-$RELEASE boson-base-$RELEASE
>  cd netpanzer-$RELEASE/
>  rm -rf debian
> -svn export
> svn://svn.debian.org/pkg-games/packages/netpanzer/netpanzer/trunk/debian
> +svn export
> svn://svn.debian.org/pkg-games/packages/netpanzer/netpanzer/tags/$DEBRELEAS
>E/debian
>
>  cd $BUILDDIR/build
>  cp ../upstream/$TARBALL_NETPANZERDATA .
>  tar xfz $TARBALL_NETPANZERDATA
>  cd netpanzer-data-$RELEASE/
>  rm -rf debian
> -svn export
> svn://svn.debian.org/pkg-games/packages/netpanzer/netpanzer-data/trunk/debi
>an +svn export
> svn://svn.debian.org/pkg-games/packages/netpanzer/netpanzer-data/tags/$DEBR
>ELEASE/debian
It's ok for me, you can commit your patch.

I've already think about a change like this. But i want to create a script 
like this:
./prepare.sh boson trunk
to prepare boson build tree from trunk
./prepare.sh boson 0.8+svn20060319-1
to prepare a specific build tree

IMO, we can use the watch files to do a part of the job, and prepare.sh should 
be a generic script that take app configuration from a subdirectory.

Regards,


	Gonéri



More information about the Pkg-games-devel mailing list