This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
How not to override existing file
- From: Sean MacLennan <seanm at seanm dot ca>
- To: automake at gnu dot org
- Date: Sat, 31 Aug 2002 15:52:10 -0400
- Subject: How not to override existing file
Hi,
I am a beginner to automake. I have setup a simple automake/autoconf
for the GoFish project <http://gofish.sourceforge.net>. The project
has a .conf file. I have the following line in the Makefile.am:
sysconf_DATA = gofish.conf
This works great at installing the conf file. Now I want to change it
so it will not overwrite an exiting file. Preferably, if the file does
not exist, it will be installed. If it does, the file will be
installed as gofish.conf.new but leave the old file alone.
Thanks,
Sean MacLennan