diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-11-15 18:49:27 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-11-15 18:49:27 +0000 |
commit | 1db8769eb7c79b6958450e127d5e040d29907391 (patch) | |
tree | 740fc6de82ddfbff5cb91224d7989543e4153c54 /release | |
parent | 7b4ac9ae27f022c09354ebe3095ff14d8c43bef0 (diff) | |
download | FreeBSD-src-1db8769eb7c79b6958450e127d5e040d29907391.zip FreeBSD-src-1db8769eb7c79b6958450e127d5e040d29907391.tar.gz |
Further automate production release generation by naming files the right
things and generating checksums.
MFC after: 1 week
Diffstat (limited to 'release')
-rwxr-xr-x | release/generate-release.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/generate-release.sh b/release/generate-release.sh index cdba026..6a95e36 100755 --- a/release/generate-release.sh +++ b/release/generate-release.sh @@ -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 + |