Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 278 → Rev 279

/build.sh
52,7 → 52,7
 
 
# list of packages to be part of CORE
COREPKGS="attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk fdnpkg format himemx kernel keyb keyb_lay label mem mode more move shsucdx sort tree undelete xcopy udvd2"
COREPKGS="attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk format himemx kernel keyb keyb_lay label mem mode more move pkg pkgnet shsucdx sort tree undelete xcopy udvd2"
 
 
 
75,6 → 75,7
# $2 heads (sides)
# $3 sectors per track
# $4 size
# $5 where to put a copy of the image (optional)
function prep_flop {
mkdir $4
mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$4/disk1.img"
101,6 → 102,11
 
unix2dos "$4/readme.txt"
 
# make a copy of the image, if requested
if [ "x$5" != "x" ] ; then
cp "$4/disk1.img" $5
fi
 
# zip the images (and remove them at the same time)
rm -f "$PUBDIR/svardos-floppy-$4k.zip"
zip -9 -rmj "$PUBDIR/svardos-floppy-$4k.zip" $4/*
137,14 → 143,15
cp "install/install.com" "$FLOPROOT/"
cp "install/nls/"install.?? "$FLOPROOT/"
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
unzip -j packages/pkg.zip bin/pkg.exe -d "$FLOPROOT/"
 
# build the boot (CD) floppy image
export MTOOLS_NO_VFAT=1
mformat -C -f 1440 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
#mformat -C -f 2880 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
#mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
 
# prepare images for floppies in different sizes (args are C H S SIZE)
prep_flop 80 2 36 2880
prep_flop 80 2 36 2880 "$CDROOT/boot.img"
prep_flop 80 2 18 1440
prep_flop 80 2 15 1200
prep_flop 80 2 9 720
156,7 → 163,7
echo "cleaning up old versions..."
rm -f "$CDISO" "$CDZIP"
 
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT"
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT/boot.img"
 
# compress the ISO
zip -mj9 "$CDZIP" "$CDISO"