Subversion Repositories SvarDOS

Rev

Rev 1108 | Show entire file | Ignore 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/"* ::/
Line 83... Line 83...
83
 
83
 
84
  # now populate the floppies
84
  # now populate the floppies
-
 
85
  curdisk=1
-
 
86
  LIST=$ALLPKGS
-
 
87
 
-
 
88
  while [ ! -z "$LIST" ] ; do
-
 
89
 
85
  curdisk=1
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
-
 
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
89
    if ! mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/ ; then
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"
-
 
92
      mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/
103
      mformat -C -t $1 -h $2 -s $3 -v SVARDOS -i "$WORKDIR/disk$curdisk.img"
-
 
104
    fi
93
    fi
105
 
Line 94... Line 106...
94
  done
106
  done
95
 
107
 
96
  # add a short readme
108
  # add a short readme