Skip site navigation (1)Skip section navigation (2)
Date:      12 Jan 2003 22:46:38 +0100
From:      Franz Klammer <klammer@webonaut.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        James Pole <james.pole@paradise.net.nz>, FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: join the test
Message-ID:  <1042407998.528.63.camel@ncc-1701>
In-Reply-To: <1042404403.2162.35.camel@shumai.marcuscom.com>
References:  <200301120204.h0C24DAF002308@ws180110.56kdialup.siu.edu> <1042359651.98032.9.camel@shumai.marcuscom.com> <1042363779.61238.2.camel@localhost>  <1042366417.528.23.camel@ncc-1701> <1042393062.2162.1.camel@shumai.marcuscom.com> <1042401045.528.44.camel@ncc-1701> <1042404403.2162.35.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-Zn0R9fK1mFFcRcO6gHjB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Am So, 2003-01-12 um 21.46 schrieb Joe Marcus Clarke:
> On Sun, 2003-01-12 at 14:50, Franz Klammer wrote:
> > Am So, 2003-01-12 um 18.37 schrieb Joe Marcus Clarke:
> > > On Sun, 2003-01-12 at 05:13, Franz Klammer wrote:
> > > > Am So, 2003-01-12 um 10.29 schrieb James Pole:
> > > > > On Sun, 2003-01-12 at 21:20, Joe Marcus Clarke wrote:
> > > > > > Go to http://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi, and follow the
> > > > > > instructions to checkout the ports module.  Once that's checked out, you
> > > > > > will have a directory that looks like /usr/ports.  It only contains the
> > > > > > updated GNOME 2.1 ports.  You should be able to use portupgrade to
> > > > > > upgrade your install ports from there, or you can just install them by
> > > > > > hand.
> > > > > 
> > > > > Is there a way to merge your incomplete ports tree with my /usr/ports
> > > > > tree apart from manually deleting the old dirs and copying in the new
> > > > > port dirs? Or am I missing something?
> > > > > 
> > > > 
> > > > hello!
> > > > 
> > > > attached are my (very quick and very dirty ;-)) scripts that
> > > > merges joe's ports into /usr/ports dirs. 
> > > > 
> > > > please set $SRCDIR in cvscp first.
> > > 
> > > Thanks.  Mind if I add them to my web page?
> > > 
> > 
> > not at all. please do what ever you want with it.
> 
> Thanks.  I've modified cvscp to be standalone, and operate dynamically
> on the checked out tree.  Let me know what you think.
> 

cool! 
but i like it a little bit more verbose.
take a look at my changes.

franz.

> Joe
> 

-- 

--=-Zn0R9fK1mFFcRcO6gHjB
Content-Disposition: attachment; filename=cvscp
Content-Type: text/x-sh; name=cvscp; charset=ISO8859-1
Content-Transfer-Encoding: 7bit

#!/bin/sh

SRCDIR="/home/klammer/ports"
DESTDIR="/usr/ports"
VERBOSE=yes

echo "${SRCDIR} --> ${DESTDIR}"
echo

if [ ! -d ${SRCDIR} ]; then
    printf "Source directory does not exist!  Please checkout the ports module from\nhttp://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi\n"
    exit 1
fi

for category in `ls -1 ${SRCDIR}`; do
    if [ ${category} = "CVS" ]; then
	continue
    fi
    for port in `ls -1 ${SRCDIR}/${category}`; do
	if [ ${port} = "CVS" ]; then
	    continue
	fi
	if [ ! -f ${SRCDIR}/${category}/${port}/Makefile ]; then
	    continue
	fi
	if [ ! -d ${DESTDIR}/${category} ]; then
	    mkdir -p ${DESTDIR}/${category}
		if [ "$VERBOSE" = "yes" ]; then 
			echo "Creating nonexisting destination category directory: ${category}"
		fi
	fi
	if [ -d ${DESTDIR}/${category}/${port} ]; then
	    rm -rf ${DESTDIR}/${category}/${port}
	fi

	cd ${SRCDIR}/${category}
    
	if [ "$VERBOSE" = "yes" ]; then 
		echo "${category}/${port} --> ${category}/${port}"
	fi
	tar --exclude *CVS* -cf - ${port} | \
		tar -xf - -C ${DESTDIR}/${category}
    done
done

--=-Zn0R9fK1mFFcRcO6gHjB--


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?1042407998.528.63.camel>