build: add "make backupworld" and "make restoreworld" functionality
authorJohn Marino <draco@marino.st>
Sun, 17 Feb 2013 11:05:18 +0000 (12:05 +0100)
committerJohn Marino <draco@marino.st>
Sun, 17 Feb 2013 12:42:56 +0000 (13:42 +0100)
commit7bee86c0ec635f688e37b15e7aa203a961ec4c84
tree98a5f67a059fa65483aaff6a01268ed55913bd18
parent34483efcd245c6c0ca04de596876445bfb8ab5e4
build: add "make backupworld" and "make restoreworld" functionality

Three new make.conf parameters have been defined:
  * WORLD_BACKUP - location to store backed up world binaries
                   default = /var/backups/world_binaries
  * DAYS_BACKUP  - The number of days since the last backup that must pass
                   before "make installworld" fails with an error
                   default = 28
  * NO_BACKUP    - defining this will prevent backup checks.

The build functionality has been changed.  Prior to "make installworld",
the makefile will check to see if system binaries have been previously
backed up.  If they haven't, "make installworld" will fail to execute
explaining that the system should be backed up.  If a previous backup
does exist, but it's older than the specified number of days, "make
installworld" will fail explaining the backup needs to be refreshed.

Passing NO_BACKUP through the command line or make.conf will inhibit
these checks.

While here, define WORLD_CCVER, LDVER, WORLD_LDVER, WORLD_BINUTILSVER
in make.conf man page too.
Makefile
Makefile.inc1
share/man/man5/make.conf.5