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