Re: install-sh -C

2006-10-22 Thread Ralf Wildenhues
> * Akim Demaille wrote on Mon, Oct 23, 2006 at 07:20:38AM CEST: > > Do you know of any means to compute the list of files with *equal* > > time stamp? Hum, playing with repetitive calls to find -not -newer > > should do that, Erm. `find -not' is not POSIX, but `find !' is.

Re: install-sh -C

2006-10-22 Thread Ralf Wildenhues
* Akim Demaille wrote on Mon, Oct 23, 2006 at 07:20:38AM CEST: > >>>I have some problems with these definitions. If there are several > >>>files that have the youngest time stamp, then the order depends on > >>>the locale. > >> > >>Nia? How can the locale change the order to time stamps? > > > >

Re: install-sh -C

2006-10-22 Thread Akim Demaille
I have some problems with these definitions. If there are several files that have the youngest time stamp, then the order depends on the locale. Nia? How can the locale change the order to time stamps? Only if the time stamps are the same: $ touch a B $ LC_ALL=C ls -1t B a $ ls -1t a B $ l

Re: install-sh -C

2006-10-22 Thread Ralf Wildenhues
* Akim Demaille wrote on Sun, Oct 22, 2006 at 07:10:20PM CEST: > > > > >>+ then > >>+ # No need to copy, that's the same file. > >>+ continue > >>+ else :; fi } && > > > >There has to be a semicolon before the }, I think. > > I don't you do: I think the semi-colon is required to end

Re: install-sh -C

2006-10-22 Thread Akim Demaille
I think using \ then newline then && was done to mimic GCS style for C code. FWIW, I prefer your style as well. That style was also used elsewhere. Wouldn't using $diffprog without double quotes be more consistent, so the user could pass options to diff as well? Sure. +test x"

Re: install-sh -C

2006-10-22 Thread Ralf Wildenhues
Hello Akim, A quick review of your patch, completely untested. > from Akim Demaille <[EMAIL PROTECTED]> [...] > Don't use '\' to continue commands: && suffices. I think using \ then newline then && was done to mimic GCS style for C code. FWIW, I prefer your style as well. > --- NEWS 1

install-sh -C

2006-10-22 Thread Akim Demaille
I work on a set of projects that share header files, and I have found it quite useful to spare compilation cycles by using AC_SUBST([INSTALL_HEADER], ['$(SHELL) $(install_sh_DATA) -C']) i.e., adding an option -C to install-sh to have a behavior similar to move-if-change. The name of the option