Make iso filename include 'bios' when using hd emulation

This commit is contained in:
Ben Gras 2005-09-24 11:28:22 +00:00
parent cb235bce1e
commit e9441a8972

View File

@ -60,15 +60,13 @@ CDFILES=/usr/tmp/cdreleasefiles
sh tell_config OS_RELEASE . OS_VERSION >/tmp/rel.$$
version_pretty=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$`
version=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$ | tr . _`
ISO=minix${version}_`date +%Y%m%d-%H%M%S`.iso
ISOGZ=${ISO}.gz
ISO=minix${version}_`date +%Y%m%d-%H%M%S`
echo $ISOGZ
RAM=/dev/ram
BS=4096
HDEMU=0
COPY=0
QUICK=0
while getopts "chaq?" c
do
@ -79,23 +77,20 @@ do
;;
h)
echo " * Making HD image"
ISO=${ISO}_bios
HDEMU=1
;;
c)
echo " * Copying, not CVS"
COPY=1
;;
q)
echo " * Quick option (skip important bits"
QUICK=1
;;
esac
done
if [ $QUICK = 0 ]
then USRMB=380
else USRMB=30
fi
ISO=${ISO}.iso
ISOGZ=${ISO}.gz
USRMB=400
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
USRSECTS="`expr $USRMB \* 1024 \* 2`"
@ -162,13 +157,12 @@ mount $TMPDISK $RELEASEDIR/usr || exit
mkdir -p $RELEASEDIR/tmp
mkdir -p $RELEASEDIR/usr/tmp
if [ $QUICK = 0 ]
then
echo " * Transfering $COPYITEMS to $RELEASEDIR"
( cd / && tar cf - $COPYITEMS ) | ( cd $RELEASEDIR && tar xf - ) || exit 1
# Make sure compilers and libraries are bin-owned
chown -R bin $RELEASEDIR/usr/lib
chmod -R u+w $RELEASEDIR/usr/lib
if [ "$COPY" -ne 1 ]
then
@ -182,6 +176,7 @@ then
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
@ -203,7 +198,6 @@ then
echo "Temporary filesystems still mounted. Make changes, or press RETURN"
echo -n "to continue making the image.."
read xyzzy
fi
echo $version_pretty >$RELEASEDIR/etc/version
echo " * Counting files"