Subversion Repositories SvarDOS

Rev

Rev 1108 | Rev 1212 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1108 Rev 1127
Line 81... Line 81...
81
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
81
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
82
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
82
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
83
 
83
 
84
  # now populate the floppies
84
  # now populate the floppies
85
  curdisk=1
85
  curdisk=1
-
 
86
  LIST=$ALLPKGS
-
 
87
 
-
 
88
  while [ ! -z "$LIST" ] ; do
-
 
89
 
-
 
90
    unset PENDING
86
  for p in $ALLPKGS ; do
91
    for p in $LIST ; do
87
    # if copy fails, then probably the floppy is full - try again after
92
      # if copy fails, then probably the floppy is full - try other packages
88
    # creating an additional floppy image
93
      # but remember all that fails so they will be retried on a new floppy
89
    if ! mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/ ; then
94
      if ! mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/ ; then
-
 
95
        PENDING="$PENDING $p"
-
 
96
      fi
-
 
97
    done
-
 
98
 
-
 
99
    LIST="$PENDING"
-
 
100
    # if there are any pending items, then create a new floppy and try pushing pending packages to it
-
 
101
    if [ ! -z "$PENDING" ] ; then
90
      curdisk=$((curdisk+1))
102
      curdisk=$((curdisk+1))
91
      mformat -C -t $1 -h $2 -s $3 -v SVARDOS -i "$WORKDIR/disk$curdisk.img"
103
      mformat -C -t $1 -h $2 -s $3 -v SVARDOS -i "$WORKDIR/disk$curdisk.img"
92
      mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/
-
 
93
    fi
104
    fi
-
 
105
 
94
  done
106
  done
95
 
107
 
96
  # add a short readme
108
  # add a short readme
97
  echo "This directory contains a set of $curdisk floppy images of the SvarDOS distribution in the $4 KB floppy format." > "$WORKDIR/readme.txt"
109
  echo "This directory contains a set of $curdisk floppy images of the SvarDOS distribution in the $4 KB floppy format." > "$WORKDIR/readme.txt"
98
  echo "" >> "$WORKDIR/readme.txt"
110
  echo "" >> "$WORKDIR/readme.txt"