Makefile.inc: Rework automatic backup (bug 2527)
authorJohn Marino <draco@marino.st>
Tue, 16 Apr 2013 00:42:13 +0000 (02:42 +0200)
committerJohn Marino <draco@marino.st>
Tue, 16 Apr 2013 21:40:55 +0000 (23:40 +0200)
commit2decc9b9d580a7e83c7f252b45601652a746c818
treeca8e20984e722f1bd511e06e56587c85c788f9a7
parent04a31cc9fd38d8bc0c3c24d8147c89ec7814250a
Makefile.inc: Rework automatic backup (bug 2527)

There were three main problems with the recently added backup feature:
1. It didn't work over NFS
2. It didn't work when a non-root built world the second time
3. It didn't use DESTDIR which had potential to conflict backups

It also previously featured "NO_BACKUP" which turned off the automatic
backup feature.  To fix the #2 problem, the install timestamp has been
removed, so to avoid unwanted backups for multiple installworlds after
one buildworld, the user needs to pass NO_BACKUP in the command line.

This patch was contributed by Thomas Nikolajsen with minor modifications
added by John Marino.

http://bugs.dragonflybsd.org/issues/2527
Makefile
Makefile.inc1
etc/defaults/make.conf
share/man/man5/make.conf.5
share/man/man7/build.7