unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Frédéric Perrin" <frederic.perrin@resel.fr>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; Womang hangs on some links
Date: Sat, 07 Jun 2008 23:19:58 -0400	[thread overview]
Message-ID: <jwvlk1g3982.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87lk1g29ul.fsf@girafe.maisel.enst-bretagne.fr> ("Frédéric Perrin"'s message of "Sat, 07 Jun 2008 23:50:26 +0200")

> A side question : given the recent discussions about the state of the
> toolchain used, I did 'rm -fr emacs ; cvs -d... co emacs ; cd emacs ;
> ./configure ; make bootstrap'. Is there a method less network and
> CPU-hungry ?

You can use a cvs-clean script which just removes all
non-CVS-controlled files.  This is *much* faster and doesn't require any
network access.
E.g. I occasionally use the script below.


        Stefan


#!/usr/bin/perl

sub cvsclean {
    my($path) = @_;
    my(%files) = ();
    my(@subdirs);

    print STDOUT "Cleaning $path\n";
    opendir (DIR, "$path/") || die "No directory $path";
    open (ENTRIES, "$path/CVS/Entries") || die "No $path/CVS/Entries file";
    while (<ENTRIES>) {
	if (m[^D/([^/]+)]) {
	    push (@subdirs, "$path/$1");
	} elsif (m[^/([^/]+)/[^/-]]) {
	    $files{$1} = "managed";
	}
    }

    foreach $entry (readdir(DIR)) {
	if (!exists ($files{$entry})) {
	    $entry = "$path/$entry";
	    if (-f $entry) {
		print STDOUT "unlink $entry\n";
		unlink $entry;
	    }
	}
    }
    
    foreach $subdir (@subdirs) {
	&cvsclean ($subdir);
    }
}

&cvsclean (".");




      reply	other threads:[~2008-06-08  3:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 21:50 23.0.60; Womang hangs on some links Frédéric Perrin
2008-06-08  3:19 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlk1g3982.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=frederic.perrin@resel.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).