From: Ben Gras Date: Sat, 24 Sep 2005 11:28:22 +0000 (+0000) Subject: Make iso filename include 'bios' when using hd emulation X-Git-Tag: v3.1.0~18 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=e9441a8972d996d36af35207468d3043dabff648;p=minix.git Make iso filename include 'bios' when using hd emulation --- 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