[m-rev.] trivial diff: don't include autoconf cache in source distribution

Simon Taylor staylr at gmail.com
Sun Jan 28 13:39:22 AEDT 2007


On 27-Jan-2007, Jonathan Morgan <jonmmorgan at gmail.com> wrote:
> On 1/10/07, Simon Taylor <staylr at gmail.com> wrote:
> >On 10-Jan-2007, Ben Schmidt <b.schmidt at ugrad.unimelb.edu.au> wrote:
> >> I wonder whether all the CVS folders should be tarred up as well? I
> >> wouldn't have thought so. An option such as --exclude=CVS to tar would
> >> probably be a better way to deal with it than deleting the folders,
> >> though, I expect. Not that it's really a problem, though, I suppose.
> >
> >I've found the CVS directories in the source distribution to be useful
> >when installing over dialup because you then don't have to download
> >several more megabytes from the CVS repository to do development work.
> 
> Sorry to bring up this discussion again, but I have tried this in the
> past and discovered it problematic.  The problem is that the source
> distribution has directory /home/mercury1/repository, whereas outside
> users need to go through the pserver.  Obviously this can be fixed,
> but it will not work straight out of the box.

"cvs -d $CVSROOT cmd" overrides the CVS/* files (but only for that
command).  The script below can be used to update the CVSROOT in
the CVS directories.

Simon.


#! /usr/bin/env bash
# Written by Roland McGrath <roland at gnu.org>

# Replaces all CVS/Root and CVS/Repository files in a checked-out CVS
# tree. Requires shell with # and % variable substitution (e.g. bash).

# Usage: newcvsroot <newroot> <modulename> <toplevel directory>

if [ $# != 3 ]; then
    echo "usage: `basename $0` <newroot> <modulename> <toplevel directory>"
    exit 1
fi

root=$1; shift
module=$1; shift
topdir=$1; shift

rep=${root##*:}

case "$topdir" in
/*|./*|../*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
esac

find $topdir \( -name Repository -o -name Root \) -print | while read f; do

case "$f" in
*/CVS/Root) echo $root > "$f" ;;
*/CVS/Repository)
  r=${module}${f#${topdir}}
  echo > "$f" $rep/${r%/CVS/Repository}
  ;;
esac

done
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list