This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]