Subversion Repositories SvarDOS

Rev

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

Rev 204 Rev 205
Line 71... Line 71...
71
 
71
 
72
 
72
 
73
# prepares image for floppy sets of size $1
73
# prepares image for floppy sets of size $1
74
function prep_flop {
74
function prep_flop {
75
  mkdir $1
75
  mkdir $1
76
  mformat -C -f $1 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$1/1.img"
76
  mformat -C -f $1 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$1/disk1.img"
77
  mcopy -sQm -i "$1/1.img" "$FLOPROOT/"* ::/
77
  mcopy -sQm -i "$1/disk1.img" "$FLOPROOT/"* ::/
78
 
78
 
79
  # now populate the floppies
79
  # now populate the floppies
80
  curdisk=1
80
  curdisk=1
81
  for p in $COREPKGS ; do
81
  for p in $COREPKGS ; do
82
    # if copy fails, then probably the floppy is full - try again after
82
    # if copy fails, then probably the floppy is full - try again after
83
    # creating an additional floppy image
83
    # creating an additional floppy image
84
    if ! mcopy -mi "$1/$curdisk.img" "$CDROOT/$p.zip" ::/ ; then
84
    if ! mcopy -mi "$1/disk$curdisk.img" "$CDROOT/$p.zip" ::/ ; then
85
      curdisk=$((curdisk+1))
85
      curdisk=$((curdisk+1))
86
      mformat -C -f $1 -v SVARDOS -i "$1/$curdisk.img"
86
      mformat -C -f $1 -v SVARDOS -i "$1/disk$curdisk.img"
87
      mcopy -mi "$1/$curdisk.img" "$CDROOT/$p.zip" ::/
87
      mcopy -mi "$1/disk$curdisk.img" "$CDROOT/$p.zip" ::/
88
    fi
88
    fi
89
  done
89
  done
90
 
90
 
-
 
91
  # add a short readme
-
 
92
  echo "This directory contains a set of $curdisk floppy images of the SvarDOS distribution in the $1 KB floppy format." > "$1/readme.txt"
-
 
93
  echo "" >> "$1/readme.txt"
-
 
94
  echo "These images are raw floppy disk dumps. To write them on an actual floppy disk, you have to use a low-level sector copying tool, like dd." >> "$1/readme.txt"
-
 
95
  echo "" >> "$1/readme.txt"
-
 
96
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.osdn.io" >> "$1/readme.txt"
-
 
97
 
-
 
98
  unix2dos "$1/readme.txt"
-
 
99
 
91
  # zip the images (and remove them at the same time)
100
  # zip the images (and remove them at the same time)
92
  rm -f "$PUBDIR/svardos-floppy-$1k.zip"
101
  rm -f "$PUBDIR/svardos-floppy-$1k.zip"
93
  zip -9 -rmj "$PUBDIR/svardos-floppy-$1k.zip" $1/*
102
  zip -9 -rmj "$PUBDIR/svardos-floppy-$1k.zip" $1/*
94
 
103
 
95
  # clean up
104
  # clean up