summaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2011-11-15 18:49:27 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2011-11-15 18:49:27 +0000
commit3aad2a9d15a68c70703277c1838bde74b65e2746 (patch)
tree740fc6de82ddfbff5cb91224d7989543e4153c54 /release
parent64589ec83fe0c911b6a8cbf8cc9d0a00bbff16b3 (diff)
downloadsrc-test2-3aad2a9d15a68c70703277c1838bde74b65e2746.tar.gz
src-test2-3aad2a9d15a68c70703277c1838bde74b65e2746.zip
Notes
Diffstat (limited to 'release')
-rwxr-xr-xrelease/generate-release.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/generate-release.sh b/release/generate-release.sh
index cdba0267346f..6a95e36a1f8a 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
+