Re: move-if-change and parallel make

2011-01-28 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Sun, Jan 23, 2011 at 09:39:59AM CET: > Updated patch below. Question remains whether the whole patch > is overkill or not? Here's the answer: http://sourceware.org/ml/binutils/2011-01/msg00366.html I've committed the patch as shown below now. Thanks, Ralf move-if

Re: move-if-change and parallel make

2011-01-23 Thread Ralf Wildenhues
Hi Paul, thanks for the review. * Paul Eggert wrote on Sat, Jan 22, 2011 at 09:07:08PM CET: > On 01/22/2011 08:03 AM, Ralf Wildenhues wrote: > > > -if test -r "$2" && cmp -s -- "$1" "$2"; then > > +if test -r "$2" && $cmpprog -- "$1" "$2" >/dev/null; then > >rm -f -- "$1" > > else > > - mv

Re: move-if-change and parallel make

2011-01-22 Thread Paul Eggert
On 01/22/2011 08:03 AM, Ralf Wildenhues wrote: > -if test -r "$2" && cmp -s -- "$1" "$2"; then > +if test -r "$2" && $cmpprog -- "$1" "$2" >/dev/null; then >rm -f -- "$1" > else > - mv -f -- "$1" "$2" > + if mv -f -- "$1" "$2"; then :; else > +# Ignore failure due to a concurrent move-i

Re: move-if-change

2007-10-01 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > But I've checked this in anyways: > http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commit;h=da27171 I suspect that nobody needs it nowadays; in that case it might be better to omit it from gnulib, as it might confuse people into thinking that it's useful.

Re: move-if-change

2007-09-28 Thread Eric Blake
Karl Berry freefriends.org> writes: > > Does anyone know where a canonical copy of move-if-change is stored? > > There never was a canonical location afaik. > > So I too think the Autoconf version is the best place to start, and you > should just put it in gnulib now, if/since you need i

Re: move-if-change

2007-09-28 Thread Karl Berry
Does anyone know where a canonical copy of move-if-change is stored? There never was a canonical location afaik. So I too think the Autoconf version is the best place to start, and you should just put it in gnulib now, if/since you need it. The gcc/emacs/etc. versions are unlikely to be im

Re: move-if-change

2007-09-28 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > Does anyone know where a canonical copy of move-if-change is stored? It used to be in Autoconf, but got removed between 2.60 and 2.61; see . If you really need it, I suggest retrievi

Re: move-if-change

2007-09-28 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > ...and we should make gnulib > become the canonical home of a proper implementation? I would like to add it > into gnulib/build-aux, so that projects can easily grab the latest version of > it from gnulib. That sounds like the way to go.