Subversion Repositories SvarDOS

Rev

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

Rev 195 Rev 196
Line 68... Line 68...
68
  # build repo idx
68
  # build repo idx
69
  $BUILDIDX "$REPOROOT/"
69
  $BUILDIDX "$REPOROOT/"
70
}
70
}
71
 
71
 
72
 
72
 
73
# prepares image for floppy sets of size $1 and in number of $2 floppies
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/1.img"
77
  mcopy -sQm -i "$1/1.img" "$FLOPROOT/"* ::/
77
  mcopy -sQm -i "$1/1.img" "$FLOPROOT/"* ::/
-
 
78
 
-
 
79
  # now populate the floppies
-
 
80
  curdisk=1
78
  for i in $(seq 2 $2) ; do
81
  for p in $CDROOT/*.zip ; do
-
 
82
    # if copy fails, then probably the floppy is full - try again after
-
 
83
    # creating an additional floppy image
-
 
84
    if ! mcopy -mi "$1/$curdisk.img" "$p" ::/ ; then
-
 
85
      curdisk=$((curdisk+1))
79
    mformat -C -f $1 -v SVARDOS -i "$1/$i.img"
86
      mformat -C -f $1 -v SVARDOS -i "$1/$curdisk.img"
-
 
87
      mcopy -mi "$1/$curdisk.img" "$p" ::/
-
 
88
    fi
80
  done
89
  done
-
 
90
 
-
 
91
  # zip the images (and remove them at the same time)
-
 
92
  rm -f "$PUBDIR/svardos-floppy-$1k.zip"
-
 
93
  zip -9 -rmj "$PUBDIR/svardos-floppy-$1k.zip" $1/*
-
 
94
 
-
 
95
  # clean up
-
 
96
  rmdir $1
81
}
97
}
82
 
98
 
83
 
99
 
84
### actual code flow starts here ############################################
100
### actual code flow starts here ############################################
85
 
101
 
Line 113... Line 129...
113
export MTOOLS_NO_VFAT=1
129
export MTOOLS_NO_VFAT=1
114
mformat -C -f 1440 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
130
mformat -C -f 1440 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
115
mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
131
mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
116
 
132
 
117
# prepare images for floppies in different sizes and numbers
133
# prepare images for floppies in different sizes and numbers
-
 
134
prep_flop 2880
118
prep_flop 1440 3
135
prep_flop 1440
119
prep_flop 1200 3
136
prep_flop 1200
120
prep_flop 720 4
137
prep_flop 720
121
 
138
 
122
# now populate the floppies sets
-
 
123
#xxxxxxx
-
 
124
 
139
 
125
# delete previous (if any) *.iso and *.md5 files
140
# delete previous (if any) *.iso and *.md5 files
126
echo "cleaning up old versions..."
141
echo "cleaning up old versions..."
127
rm -f "$PUBDIR/svardos.iso" "$PUBDIR/svardos.iso.md5"
142
rm -f "$PUBDIR/svardos.iso" "$PUBDIR/svardos.iso.md5"
128
 
143