mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Further automate production release generation by naming files the right
things and generating checksums. MFC after: 1 week
This commit is contained in:
parent
64589ec83f
commit
3aad2a9d15
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227536
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue