Re: [PATCH] compare header files before installing

2000-10-16 Thread Akim Demaille


This patch seems OK to me, but I'd appreciate if Alexandre, Tom, Pavel
or Jim could confirm it's OK.




Re: [PATCH] compare header files before installing

2000-10-16 Thread Alexandre Oliva

On Oct 16, 2000, Akim Demaille [EMAIL PROTECTED] wrote:

 This patch seems OK to me, but I'd appreciate if Alexandre, Tom, Pavel
 or Jim could confirm it's OK.

I have mixed feelings about this.  At first, it may sound nice to not
touch pre-existing files.  However, think of someone that uses the
timestamp to decide whether a certain file is part of the newly
installed package or just some remnant from an old release that can
now be removed...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me




Re: [PATCH] compare header files before installing

2000-10-16 Thread Raja R Harinath

Alexandre Oliva [EMAIL PROTECTED] writes:
 On Oct 16, 2000, Akim Demaille [EMAIL PROTECTED] wrote:
  This patch seems OK to me, but I'd appreciate if Alexandre, Tom, Pavel
  or Jim could confirm it's OK.
 
 I have mixed feelings about this.  At first, it may sound nice to not
 touch pre-existing files.  However, think of someone that uses the
 timestamp to decide whether a certain file is part of the newly
 installed package or just some remnant from an old release that can
 now be removed...

One approach would be to use $(INSTALL_HEADER) which defaults to
$(INSTALL_DATA), and allow users to specify a special installer if
they choose.  Of course, it would be nice if 'install' in fileutils
could be extended to provide a --only-if-change option.

Usage would be something like

  make INSTALL_HEADER='install --only-if-change' install 

- Hari
-- 
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions."  -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash