Skip site navigation (1)Skip section navigation (2)
Date:      17 Jan 2003 14:28:31 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
Cc:        freebsd-gnome@FreeBSD.ORG
Subject:   Re: Howto do ./marcusmerge ?
Message-ID:  <1042831710.328.51.camel@gyros>
In-Reply-To: <20030117191611.GI337@martin.kdrache.org>
References:  <20030117135722.V34734@small.pukruppa.de> <1042814311.14047.21.camel@ds9.webonaut.com> <20030117151710.GC337@martin.kdrache.org> <1042818446.14047.45.camel@ds9.webonaut.com> <20030117160226.GG337@martin.kdrache.org> <1042822996.328.10.camel@gyros> <20030117191611.GI337@martin.kdrache.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2003-01-17 at 14:16, Martin Klaffenboeck wrote:
> Am 2003.01.17 18:03 schrieb(en) Joe Marcus Clarke:
> 
> > I like your modifications, and I'll commit them.  However, I have to
> > agree with Franz.  I don't think having a default directory is good at
> > all.  I think I'll set to it nothing, then "assert" unless the user
> > changes it.
> > 
> > Thanks for the submissions.
> 
> You're welcome. ;-)
> 
> Just one thing to prevent the user to checkout to a wrong directory, I 
> added:
> 
> ---diff starts here---
> --- marcusmerge.orig	Fri Jan 17 19:58:43 2003
> +++ marcusmerge	Fri Jan 17 20:10:14 2003
> @@ -15,6 +15,8 @@
>       printf "First we have to checkout the ports module 
> from\nhttp://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi\nPlease type 
> 'anoncvs' as your password.\n\n"
>       cvs 
> -d:pserver:anaonymous@creme-brulee.marcuscom.com:/space/cvs/marcuscom-cvs 
> login
>       echo "===> Checking out the ports module."
> +    mkdir -p ${SRCDIR}
> +    cd ${SRCDIR} ; cd ..

What about:

mkdir -p `dirname ${SRCDIR}`
cd `dirname ${SRCDIR}`

Joe

>       cvs -z3 
> -d:pserver:anonymous@creme-brulee.marcuscom.com:/space/cvs/marcuscom-cvs 
> co ports
>       echo "===> Checkout done."
>   fi
> --diff ends here---
> 
> The cvs co -d ${SRCDIR} didn't work, if ${SRCDIR} is an absolute path 
> (sh extracts ~ to an absolute path).
> But this diff works fine, even if I don't know if this is really clean.
> 
> Martin
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-gnome" in the body of the message
-- 
PGP Key : http://www.marcuscom.com/pgp.asc




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1042831710.328.51.camel>