3
In the makefile for my project, I want it to copy a config file only if the file does not already exist in the destination folder. At the moment I am using:
cp -n
However, recently someone has told me that they are getting an "invalid option" error.
My question is: for a makefile, is there a more compatible method to achieve this than cp -n?
(Note: cp -u is not what I want, if the file already exists, it should never be replaced even if it is older than the source file.)
That's a great idea about the .new file, I'll use that - thanks! – SlappyTheFish – 2011-07-11T22:08:31.467