On Sun, 25 Jan 2004, bulia byak wrote:
To fix this:
https://sourceforge.net/tracker/index.php?func=detail&aid=866103&gro...
I want to back up the old prefs file before writing the new one. Adding an option to backup SVG files when saving would be great, too. There's a library here:
http://www.gnu.org/software/gnulib/
that has this functionality and claims to be portable. So what do we do?
include gnulib as a dependency
lift just backupfile.c and copy-file.c from it and include in our codebase
find some other lib
write the backup function ourselves
Any comments?
According to the GNULib webpage it recommends:
"[GNULib's] components are intended to be shared at the source level, rather than being a library that gets installed and linked against. Instead, the idea is to copy files from gnulib into your own source tree. "
So this seems to support approach #2.
Bryce