Further automate production release generation by naming files the right

things and generating checksums.

MFC after:	1 week
This commit is contained in:
Nathan Whitehorn 2011-11-15 18:49:27 +00:00
parent 64589ec83f
commit 3aad2a9d15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227536
2 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# SVNROOT: SVN URL to FreeBSD source repository (by default,
# svn://svn.freebsd.org/base)
# MAKE_FLAGS: optional flags to pass to make (e.g. -j)
# RELSTRING: optional base name for media images (e.g. FreeBSD-9.0-RC2-amd64)
#
# Note: Since this requires a chroot, release cross-builds will not work!
#
@ -65,3 +66,12 @@ chroot $2 make -C /usr/src $MAKE_FLAGS buildworld buildkernel
chroot $2 make -C /usr/src/release release
chroot $2 make -C /usr/src/release install DESTDIR=/R
: ${RELSTRING=`chroot $2 uname -s`-`chroot $2 uname -r`-`chroot $2 uname -p`}
cd $2/R
for i in release.iso bootonly.iso memstick; do
mv $i $RELSTRING-$i
done
sha256 $RELSTRING-* > CHECKSUM.SHA256
md5 $RELSTRING-* > CHECKSUM.MD5

View File

@ -149,6 +149,11 @@ when invoked by the script.
.It Ev SVNROOT
The location of the FreeBSD SVN source repository. Defaults to
.Pa svn://svn.freebsd.org/base .
.It Ev RELSTRING
Optional base name for generated media images (e.g. FreeBSD-9.0-RC2-amd64).
Defaults to the output of
.Ic `uname -s`-`uname -r`-`uname -p`
within the chroot.
.El
.Sh MAKEFILE TARGETS
The release makefile