source: build-files/freebsd-update/scripts/approve.sh @ 635dc54

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 635dc54 was 635dc54, checked in by Kris Moore <kris@…>, 15 months ago

Add our freebsd-update code to GIT

This will become a dumping ground for mods we may make to the freebsd-update
build process, as well as the specific patches we have going into a release

  • Property mode set to 100755
File size: 2.1 KB
Line 
1#!/bin/sh -e
2
3#-
4# Copyright 2006 Colin Percival
5# All rights reserved
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted providing that the following conditions
9# are met:
10# 1. Redistributions of source code must retain the above copyright
11#    notice, this list of conditions and the following disclaimer.
12# 2. Redistributions in binary form must reproduce the above copyright
13#    notice, this list of conditions and the following disclaimer in the
14#    documentation and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
25# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26# POSSIBILITY OF SUCH DAMAGE.
27
28# $FreeBSD: user/cperciva/freebsd-update-build/scripts/approve.sh 247826 2013-03-05 00:52:14Z cperciva $
29
30# Mark a build as "approved": Sign it and copy it to the upload staging
31# area.  This should be done after carefully examining the output of the
32# recently complete "init" or "diff" run.  Note that once a build has
33# been approved, it is rather difficult to "unapprove" it, even if nothing
34# has yet been uploaded.
35
36. `dirname $0`/build.subr
37readconfig $1 $2
38
39# Make sure an unencrypted key exists
40checkkey
41
42# Approve the build.
43approve
44
45# Remove the world; we don't need it any more
46removeworld newworld
47
48# Remind the user to umount the key if they're finished
49cat <<-EOF
50
51        The FreeBSD/${TARGET} ${RELP} update build has been signed and is
52        ready to be uploaded.  Remember to run
53        # sh -e umountkey.sh
54        to unmount the decrypted key once you have finished signing all
55        the new builds.
56EOF
Note: See TracBrowser for help on using the repository browser.