Subversion Repositories SvarDOS

Rev

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

Rev 1698 Rev 1750
Line 61... Line 61...
61
 
61
 
62
 
62
 
63
# list of packages to be part of CORE (always installed)
63
# list of packages to be part of CORE (always installed)
64
COREPKGS=`ls -1 'packages-core' | grep -o '^[a-z]*'`
64
COREPKGS=`ls -1 'packages-core' | grep -o '^[a-z]*'`
65
 
65
 
66
# list of packages to be part of EXTRA (only sometimes installed, typically drivers)
-
 
67
EXTRAPKGS="pcntpk udvd2"
-
 
68
 
-
 
69
# all packages
-
 
70
ALLPKGS="$COREPKGS $EXTRAPKGS"
-
 
71
 
66
 
72
 
67
 
73
# prepares image for floppy sets of:
68
# prepares image for floppy sets of:
74
# $1 cylinders
69
# $1 cylinders
75
# $2 heads (sides)
70
# $2 heads (sides)
76
# $3 sectors per track
71
# $3 sectors per track
77
# $4 size
72
# $4 size
78
# $5 working directory (for temporary files etc)
73
# $5 working directory (for temporary files etc)
79
# $6 name of the set (eg. "1440k" or "1440k-EN")
74
# $6 name of the set (eg. "1440k" or "1440k-EN")
-
 
75
# $7 list of packages
80
# $7 where to put a copy of the image (optional)
76
# $8 where to put a copy of the image (optional)
81
function prep_flop {
77
function prep_flop {
82
  WORKDIR="$5/$6"
78
  WORKDIR="$5/$6"
-
 
79
  LIST=$7
83
  mkdir "$WORKDIR"
80
  mkdir "$WORKDIR"
84
  mformat -C -t $1 -h $2 -s $3 -v $CURDATE -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
81
  mformat -C -t $1 -h $2 -s $3 -v $CURDATE -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
85
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
82
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
86
 
83
 
87
  # now populate the floppies
84
  # now populate the floppies
88
  curdisk=1
85
  curdisk=1
89
  LIST=$ALLPKGS
-
 
90
 
86
 
91
  while [ ! -z "$LIST" ] ; do
87
  while [ ! -z "$LIST" ] ; do
92
 
88
 
93
    unset PENDING
89
    unset PENDING
94
    for p in $LIST ; do
90
    for p in $LIST ; do
Line 116... Line 112...
116
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.org" >> "$WORKDIR/readme.txt"
112
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.org" >> "$WORKDIR/readme.txt"
117
 
113
 
118
  unix2dos "$WORKDIR/readme.txt"
114
  unix2dos "$WORKDIR/readme.txt"
119
 
115
 
120
  # make a copy of the image, if requested
116
  # make a copy of the image, if requested
121
  if [ "x$7" != "x" ] ; then
117
  if [ "x$8" != "x" ] ; then
122
    cp "$WORKDIR/disk1.img" $7
118
    cp "$WORKDIR/disk1.img" $8
123
  fi
119
  fi
124
 
120
 
125
  # zip the images (and remove them at the same time)
121
  # zip the images (and remove them at the same time)
126
  zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$6.zip" "$WORKDIR"/*
122
  zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$6.zip" "$WORKDIR"/*
127
 
123
 
Line 149... Line 145...
149
for pkg in $COREPKGS ; do
145
for pkg in $COREPKGS ; do
150
  cp "$REPOROOTCORE/$pkg.svp" "$CDROOT/"
146
  cp "$REPOROOTCORE/$pkg.svp" "$CDROOT/"
151
  echo "$pkg" >> "$FLOPROOT/install.lst"
147
  echo "$pkg" >> "$FLOPROOT/install.lst"
152
done
148
done
153
 
149
 
154
# add EXTRA packages to CDROOT (but not in the list of packages to install)
150
# add some extra packages to CDROOT but not in the list of packages to install
155
for pkg in $EXTRAPKGS ; do
151
cp "$REPOROOT/pcntpk.svp" "$CDROOT/"
156
  cp "$REPOROOT/$pkg.svp" "$CDROOT/"
152
cp "$REPOROOT/videcdd-2.14.svp" "$CDROOT/videcdd.svp"
-
 
153
 
157
done
154
#
158
 
155
 
159
 
156
 
160
echo
157
echo
161
echo "### Populating the floppy root at $FLOPROOT"
158
echo "### Populating the floppy root at $FLOPROOT"
162
echo
159
echo
Line 202... Line 199...
202
 
199
 
203
# prepare the USB bootable image
200
# prepare the USB bootable image
204
USBIMG=$PUBDIR/svardos-usb.img
201
USBIMG=$PUBDIR/svardos-usb.img
205
cp files/boot-svardos.img $USBIMG
202
cp files/boot-svardos.img $USBIMG
206
mcopy -sQm -i "$USBIMG@@32256" "$FLOPROOT/"* ::/
203
mcopy -sQm -i "$USBIMG@@32256" "$FLOPROOT/"* ::/
207
for p in $ALLPKGS ; do
204
for p in $COREPKGS ; do
208
  mcopy -mi "$USBIMG@@32256" "$CDROOT/$p.svp" ::/
205
  mcopy -mi "$USBIMG@@32256" "$CDROOT/$p.svp" ::/
209
done
206
done
210
 
207
 
211
# compress the USB image
208
# compress the USB image
212
zip -mj9 "$PUBDIR/svardos-$CURDATE-usb.zip" "$USBIMG"
209
zip -mj9 "$PUBDIR/svardos-$CURDATE-usb.zip" "$USBIMG"
Line 222... Line 219...
222
 
219
 
223
# build the boot (CD) floppy image
220
# build the boot (CD) floppy image
224
export MTOOLS_NO_VFAT=1
221
export MTOOLS_NO_VFAT=1
225
 
222
 
226
# prepare images for floppies in different sizes (args are C H S SIZE)
223
# prepare images for floppies in different sizes (args are C H S SIZE)
-
 
224
echo "videcdd" >> "$FLOPROOT/install.lst"
227
prep_flop 80 2 36 2880 "$PUBDIR" "2.88M" "$CDROOT/boot.img"
225
prep_flop 80 2 36 2880 "$PUBDIR" "2.88M" "$COREPKGS pcntpk videcdd" "$CDROOT/boot.img"
-
 
226
# no videcdd for non-2.88M images
-
 
227
sed -i '/^videcdd$/d' "$FLOPROOT/install.lst"
228
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M"
228
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M" "$COREPKGS pcntpk"
229
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M"
229
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M" "$COREPKGS"
230
prep_flop 80 2  9  720 "$PUBDIR" "720K"
230
prep_flop 80 2  9  720 "$PUBDIR" "720K" "$COREPKGS"
231
 
231
 
232
 
232
 
233
echo
233
echo
234
echo "### Computing DOSEMU.zip"
234
echo "### Computing DOSEMU.zip"
235
echo
235
echo
Line 334... Line 334...
334
for p in $COREPKGS ; do
334
for p in $COREPKGS ; do
335
  # the || true bit is because zip returns a non-zero exit code on no file match
335
  # the || true bit is because zip returns a non-zero exit code on no file match
336
  zip -dq "$CDROOT/$p.svp" 'bin/*.lng' 'BIN/*.LNG' 'nls/*' 'NLS/*' || true
336
  zip -dq "$CDROOT/$p.svp" 'bin/*.lng' 'BIN/*.LNG' 'nls/*' 'NLS/*' || true
337
done
337
done
338
 
338
 
339
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M-EN_ONLY"
339
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M-EN_ONLY" "$COREPKGS"
340
#prep_flop 80 2 21 1680 "$PUBDIR" "1.44M-DMF-EN_ONLY"
340
#prep_flop 80 2 21 1680 "$PUBDIR" "1.44M-DMF-EN_ONLY"
341
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M-EN_ONLY"
341
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M-EN_ONLY" "$COREPKGS"
342
prep_flop 80 2  9  720 "$PUBDIR" "720K-EN_ONLY"
342
prep_flop 80 2  9  720 "$PUBDIR" "720K-EN_ONLY" "$COREPKGS"
343
prep_flop 40 2  9  360 "$PUBDIR" "360K-EN_ONLY"
343
prep_flop 40 2  9  360 "$PUBDIR" "360K-EN_ONLY" "$COREPKGS"
344
 
344
 
345
 
345
 
346
###############################################################################
346
###############################################################################
347
# cleanup all temporary things                                                #
347
# cleanup all temporary things                                                #
348
###############################################################################
348
###############################################################################