This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: How not to override existing file
- From: Tom Tromey <tromey at redhat dot com>
- To: Sean MacLennan <seanm at seanm dot ca>
- Cc: automake at gnu dot org
- Date: 31 Aug 2002 14:32:12 -0600
- Subject: Re: How not to override existing file
- References: <15729.7786.980056.743241@fillmore.seanm.ca>
- Reply-to: tromey at redhat dot com
>>>>> "Sean" == Sean MacLennan <seanm@seanm.ca> writes:
Sean> sysconf_DATA = gofish.conf
Sean> This works great at installing the conf file. Now I want to
Sean> change it so it will not overwrite an exiting file. Preferably,
Sean> if the file does not exist, it will be installed. If it does,
Sean> the file will be installed as gofish.conf.new but leave the old
Sean> file alone.
There's no automatic way to do this.
But you can write an install-local rule and do it by hand.
Tom