delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/04/10:00:16

X-Spam-Check-By: sourceware.org
Date: Tue, 4 Apr 2006 10:00:06 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Richard Quadling <rquadling AT googlemail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Some pointers required on log file examination.
In-Reply-To: <10845a340604040640n317cafbr20c1b190539241c2@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0604040949040.14091@access1.cims.nyu.edu>
References: <10845a340604040128k14627ef8h869a937d943e94d0 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0604040914450 DOT 14091 AT access1 DOT cims DOT nyu DOT edu> <10845a340604040640n317cafbr20c1b190539241c2 AT mail DOT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Earlier, I wrote (regarding firing off the build once some number of files
have changed):

> FWIW, a slightly better way of structuring your make is to remember the
> date/time of the last make (as a timestamp on a file, perhaps), and
> simply compare CVS as of that date/time with the HEAD.  If the HEAD has
> certain properties (some particular files changed, the number of changed
> files is greater than some threshold, etc), then fire off a checkout and
> the build.

On Tue, 4 Apr 2006, Richard Quadling wrote:

> Thanks for that. I'd not thought of using the CVS itself.
> Living and learning.

It would be nice to quote at least some relevant part of the message
you're replying to, just to set the context for people seeing this thread
for the first time.

Also, a small clarification: when I said "compare CVS as of that
date/time", I did not mean the repository itself, but the "cvs" command.
In your case, if you only do the checkout whenever you do the make, using
"cvs -n checkout" should suffice -- just examine the output of that.
E.g., something like (untested):

cvs -qn checkout > log && \
[ `wc -l log` -ge 50 -o `grep -F -c -f IMPORTANT_FILES log` -gt 0 ] && \
cvs -q checkout && make

where IMPORTANT_FILES is a file that contains the list of files changes to
which should kick off the build no matter what, one per line, with a 'U '
in front of it (to simulate cvs output).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019