Subversion Repositories SvarDOS

Rev

Rev 1499 | Rev 1528 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1499 Rev 1527
Line 73... Line 73...
73
# $1 cylinders
73
# $1 cylinders
74
# $2 heads (sides)
74
# $2 heads (sides)
75
# $3 sectors per track
75
# $3 sectors per track
76
# $4 size
76
# $4 size
77
# $5 working directory (for temporary files etc)
77
# $5 working directory (for temporary files etc)
-
 
78
# $6 name of the set (eg. "1440k" or "1440k-EN")
78
# $6 where to put a copy of the image (optional)
79
# $7 where to put a copy of the image (optional)
79
function prep_flop {
80
function prep_flop {
80
  WORKDIR="$5/$4"
81
  WORKDIR="$5/$6"
81
  mkdir "$WORKDIR"
82
  mkdir "$WORKDIR"
82
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
83
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
83
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
84
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
84
 
85
 
85
  # now populate the floppies
86
  # now populate the floppies
Line 114... Line 115...
114
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.org" >> "$WORKDIR/readme.txt"
115
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.org" >> "$WORKDIR/readme.txt"
115
 
116
 
116
  unix2dos "$WORKDIR/readme.txt"
117
  unix2dos "$WORKDIR/readme.txt"
117
 
118
 
118
  # make a copy of the image, if requested
119
  # make a copy of the image, if requested
119
  if [ "x$6" != "x" ] ; then
120
  if [ "x$7" != "x" ] ; then
120
    cp "$WORKDIR/disk1.img" $6
121
    cp "$WORKDIR/disk1.img" $7
121
  fi
122
  fi
122
 
123
 
123
  # zip the images (and remove them at the same time)
124
  # zip the images (and remove them at the same time)
124
  rm -f "$PUBDIR/svardos-floppy-$4k.zip"
-
 
125
  zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$4k.zip" "$WORKDIR"/*
125
  zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$6.zip" "$WORKDIR"/*
126
 
126
 
127
  # clean up
127
  # clean up
128
  rmdir "$WORKDIR"
128
  rmdir "$WORKDIR"
129
}
129
}
130
 
130
 
Line 221... Line 221...
221
 
221
 
222
# build the boot (CD) floppy image
222
# build the boot (CD) floppy image
223
export MTOOLS_NO_VFAT=1
223
export MTOOLS_NO_VFAT=1
224
 
224
 
225
# prepare images for floppies in different sizes (args are C H S SIZE)
225
# prepare images for floppies in different sizes (args are C H S SIZE)
226
prep_flop 80 2 36 2880 "$PUBDIR" "$CDROOT/boot.img"
226
prep_flop 80 2 36 2880 "$PUBDIR" "2.88M" "$CDROOT/boot.img"
227
prep_flop 80 2 18 1440 "$PUBDIR"
227
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M"
228
prep_flop 80 2 15 1200 "$PUBDIR"
228
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M"
229
prep_flop 80 2  9  720 "$PUBDIR"
229
prep_flop 80 2  9  720 "$PUBDIR" "720K"
230
 
230
 
231
# special case for 360K diskettes: some files must be deleted to make some room,
-
 
232
# for this reason the 360K floppy must be generated as last (after all other
231
# remove internationalization files for EN-ONLY releases. This is the only way
233
# floppies and after the USB image)
232
# to build the 360K variant
234
rm "$FLOPROOT"/*.cpx
233
rm "$FLOPROOT"/*.cpx
235
rm "$FLOPROOT"/install.lng
234
rm "$FLOPROOT"/install.lng
236
rm "$FLOPROOT"/display.exe
235
rm "$FLOPROOT"/display.exe
237
rm "$FLOPROOT"/mode.com
236
rm "$FLOPROOT"/mode.com
238
#
237
#
-
 
238
 
-
 
239
# disabling EN-ONLY builds of 1.4M, 1.2M and 720K because EN-ONLY does not
-
 
240
# decrease the amount of diskettes at this moment.
-
 
241
#prep_flop 80 2 18 1440 "$PUBDIR" "1.44M-EN_ONLY"
-
 
242
#prep_flop 80 2 15 1200 "$PUBDIR" "1.2M-EN_ONLY"
-
 
243
#prep_flop 80 2  9  720 "$PUBDIR" "720K-EN_ONLY"
239
prep_flop 40 2  9  360 "$PUBDIR"
244
prep_flop 40 2  9  360 "$PUBDIR" "360K-EN_ONLY"
240
 
245
 
241
 
246
 
242
echo
247
echo
243
echo "### Computing DOSEMU.zip"
248
echo "### Computing DOSEMU.zip"
244
echo
249
echo