From e9441a8972d996d36af35207468d3043dabff648 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sat, 24 Sep 2005 11:28:22 +0000 Subject: [PATCH] Make iso filename include 'bios' when using hd emulation --- tools/release.sh | 96 +++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 51 deletions(-) diff --git a/tools/release.sh b/tools/release.sh index d9ca393f0..23e035b57 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -60,15 +60,13 @@ CDFILES=/usr/tmp/cdreleasefiles sh tell_config OS_RELEASE . OS_VERSION >/tmp/rel.$$ version_pretty=`sed 's/[" ]//g;/^$/d' $RELEASEDIR/CD - echo " * Chroot build" - chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1 - echo " * Chroot build done" - # The build process leaves some file in src as root. - chown -R bin $RELEASEDIR/usr/src* - cp issue.install $RELEASEDIR/etc/issue - - if [ "$HDEMU" -ne 0 ]; then hdemu_root_changes; fi - - echo "Temporary filesystems still mounted. Make changes, or press RETURN" - echo -n "to continue making the image.." - read xyzzy + echo " * Doing new cvs export" + ( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src ) +else + ( cd .. && make clean ) + srcdir=/usr/src + ( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - ) fi +echo " * Fixups for owners and modes of dirs and files" +chown -R bin $RELEASEDIR/usr/src +chmod -R u+w $RELEASEDIR/usr/lib +find $RELEASEDIR/usr/src -type d | xargs chmod 755 +find $RELEASEDIR/usr/src -type f | xargs chmod 644 +find $RELEASEDIR/usr/src -name configure | xargs chmod 755 +find $RELEASEDIR/usr/src/commands -name build | xargs chmod 755 +# Bug tracking system not for on cd +rm -rf $RELEASEDIR/usr/src/doc/bugs + +# Make sure the CD knows it's a CD +date >$RELEASEDIR/CD +echo " * Chroot build" +chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1 +echo " * Chroot build done" +# The build process leaves some file in src as root. +chown -R bin $RELEASEDIR/usr/src* +cp issue.install $RELEASEDIR/etc/issue + +if [ "$HDEMU" -ne 0 ]; then hdemu_root_changes; fi + +echo "Temporary filesystems still mounted. Make changes, or press RETURN" +echo -n "to continue making the image.." +read xyzzy + echo $version_pretty >$RELEASEDIR/etc/version echo " * Counting files" df $TMPDISK | tail -1 | awk '{ print $4 }' >$RELEASEDIR/.usrkb -- 2.44.0