diff scripts/bundi @ 1779:c37b7bb2b116

Parameterized the script.... still needs more work
author boisy
date Sat, 02 Apr 2005 21:45:50 +0000
parents 7f2e75d5b62d
children 0af3f5f84033
line wrap: on
line diff
--- a/scripts/bundi	Sat Apr 02 20:39:26 2005 +0000
+++ b/scripts/bundi	Sat Apr 02 21:45:50 2005 +0000
@@ -1,8 +1,7 @@
-#!/bin/tcsh -x
+#!/bin/tcsh
 #
 # BUNDI - Build the Ultimate NitrOS-9 Disk Image
 #
-#
 # This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image
 # complete with HDB-DOS drives!
 #
@@ -18,43 +17,63 @@
 # ATTENTION!  Set the number of HDB-DOS virtual disks (must be in decimal)
 set num_hdbdos_disks=128
 
+# Check for argument
+if ($2 == "") then
+	echo "Usage: bundi <bootscript> <diskname>"
+	exit
+endif
 
-set diskname=ultimate.dsk
+set diskname=$2
 set multiplier=2
 @ os9_sectors = $hdbdos_offset * $multiplier
 echo $os9_sectors
 @ hdb_drives = $num_hdbdos_disks - 2
 
-########## PART  I ##########
-#                           #
-#    Assemble EVERYTHING!   #
-#                           #
-#############################
-# Step 1 - Make the ENTIRE NitrOS-9 Project
-pushd $NITROS9DIR; make dsk; popd
+echo "########## PART  I ##########"
+echo "#                           #"
+echo "#    Assemble EVERYTHING!   #"
+echo "#                           #"
+echo "#############################"
+echo
+echo "Step 1 - Making the ENTIRE NitrOS-9 Project (could take a while)..."
+(pushd $NITROS9DIR; make dsk; popd)>&/dev/null
 
-# Step 2 - Make the HDB-DOS product
-pushd $CLOUD9DIR/Products/HDB-DOS/Software
-make dsk
-popd
+echo "Step 2 - Making the HDB-DOS Product..."
+(pushd $CLOUD9DIR/Products/HDB-DOS/Software; make dsk; popd)>&/dev/null
+
+echo "Step 3 - Making the Ved Product..."
+(pushd $CLOUD9DIR/Products/Ved/Software; make dsk; popd)>&/dev/null
 
-########## PART II ##########
-#                           #
-#   Prepare the Disk Image  #
-#                           #
-#############################
-# Step 1 - Prepare the disk image
+echo "########## PART II ##########"
+echo "#                           #"
+echo "#   Prepare the Disk Image  #"
+echo "#                           #"
+echo "#############################"
+echo
+echo "Step 1 - Format the disk and make the boot disk"
 os9 format -qe -l$os9_sectors tmp.dsk
-./makeboot
-os9 dsave -e $NITROS9DIR/6309l2/latest_80d.dsk, tmp.dsk,
-os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk,
+./$1>&/dev/null
+os9 dsave -e $NITROS9DIR/6309l2/latest_80d.dsk, tmp.dsk, >&/dev/null
+os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk, >&/dev/null
+os9 dsave -e $NITROS9DIR/3rdparty/packages/cc/cc.dsk, tmp.dsk, >&/dev/null
+os9 dsave -e $NITROS9DIR/3rdparty/packages/basic09/basic09v010100.dsk, tmp.dsk, >&/dev/null
+os9 dsave -e $CLOUD9DIR/Products/Ved/Software/ved.dsk, tmp.dsk, >&/dev/null
 os9 format -qe -ss -dd boot.dsk
-os9 gen -b=bootfile -t=boottrack boot.dsk
+os9 gen -b=bootfile -t=boottrack boot.dsk>&/dev/null
 rm bootfile boottrack
+
+echo "Step 2 - Build the HDB-DOS drives"
+rm hdbdrives.dsk
 decb dskini -h$hdb_drives hdbdrives.dsk
+rm hdbdrives2.dsk
 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk
 rm hdbdrives.dsk boot.dsk
 decb hdbconv hdbdrives2.dsk hdbdrives.dsk
 rm hdbdrives2.dsk
+
+echo "Step 3 - Put it all together"
+rm $diskname
 cat tmp.dsk hdbdrives.dsk>$diskname
 rm tmp.dsk hdbdrives.dsk
+
+echo "Ok, we're done! The file $diskname is now a fresh disk image."