Subversion Repositories SvarDOS

Rev

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

Rev 246 Rev 279
Line 50... Line 50...
50
# abort if anything fails
50
# abort if anything fails
51
set -e
51
set -e
52
 
52
 
53
 
53
 
54
# list of packages to be part of CORE
54
# list of packages to be part of CORE
55
COREPKGS="attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk fdnpkg format himemx kernel keyb keyb_lay label mem mode more move shsucdx sort tree undelete xcopy udvd2"
55
COREPKGS="attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk format himemx kernel keyb keyb_lay label mem mode more move pkg pkgnet shsucdx sort tree undelete xcopy udvd2"
56
 
56
 
57
 
57
 
58
 
58
 
59
# function that builds the packages repository
59
# function that builds the packages repository
60
function dorepo {
60
function dorepo {
Line 73... Line 73...
73
# prepares image for floppy sets of:
73
# prepares image for floppy sets of:
74
# $1 cylinders
74
# $1 cylinders
75
# $2 heads (sides)
75
# $2 heads (sides)
76
# $3 sectors per track
76
# $3 sectors per track
77
# $4 size
77
# $4 size
-
 
78
# $5 where to put a copy of the image (optional)
78
function prep_flop {
79
function prep_flop {
79
  mkdir $4
80
  mkdir $4
80
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$4/disk1.img"
81
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$4/disk1.img"
81
  mcopy -sQm -i "$4/disk1.img" "$FLOPROOT/"* ::/
82
  mcopy -sQm -i "$4/disk1.img" "$FLOPROOT/"* ::/
82
 
83
 
Line 99... Line 100...
99
  echo "" >> "$4/readme.txt"
100
  echo "" >> "$4/readme.txt"
100
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.osdn.io" >> "$4/readme.txt"
101
  echo "Latest SvarDOS version is available on the project's homepage: http://svardos.osdn.io" >> "$4/readme.txt"
101
 
102
 
102
  unix2dos "$4/readme.txt"
103
  unix2dos "$4/readme.txt"
103
 
104
 
-
 
105
  # make a copy of the image, if requested
-
 
106
  if [ "x$5" != "x" ] ; then
-
 
107
    cp "$4/disk1.img" $5
-
 
108
  fi
-
 
109
 
104
  # zip the images (and remove them at the same time)
110
  # zip the images (and remove them at the same time)
105
  rm -f "$PUBDIR/svardos-floppy-$4k.zip"
111
  rm -f "$PUBDIR/svardos-floppy-$4k.zip"
106
  zip -9 -rmj "$PUBDIR/svardos-floppy-$4k.zip" $4/*
112
  zip -9 -rmj "$PUBDIR/svardos-floppy-$4k.zip" $4/*
107
 
113
 
108
  # clean up
114
  # clean up
Line 135... Line 141...
135
 
141
 
136
# prepare the content of the boot (install) floppy
142
# prepare the content of the boot (install) floppy
137
cp "install/install.com" "$FLOPROOT/"
143
cp "install/install.com" "$FLOPROOT/"
138
cp "install/nls/"install.?? "$FLOPROOT/"
144
cp "install/nls/"install.?? "$FLOPROOT/"
139
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
145
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
-
 
146
unzip -j packages/pkg.zip bin/pkg.exe -d "$FLOPROOT/"
140
 
147
 
141
# build the boot (CD) floppy image
148
# build the boot (CD) floppy image
142
export MTOOLS_NO_VFAT=1
149
export MTOOLS_NO_VFAT=1
143
mformat -C -f 1440 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
150
#mformat -C -f 2880 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
144
mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
151
#mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
145
 
152
 
146
# prepare images for floppies in different sizes (args are C H S SIZE)
153
# prepare images for floppies in different sizes (args are C H S SIZE)
147
prep_flop 80 2 36 2880
154
prep_flop 80 2 36 2880 "$CDROOT/boot.img"
148
prep_flop 80 2 18 1440
155
prep_flop 80 2 18 1440
149
prep_flop 80 2 15 1200
156
prep_flop 80 2 15 1200
150
prep_flop 80 2  9  720
157
prep_flop 80 2  9  720
151
 
158
 
152
CDISO="$PUBDIR/svardos-cd.iso"
159
CDISO="$PUBDIR/svardos-cd.iso"
Line 154... Line 161...
154
 
161
 
155
# delete previous (if any) iso
162
# delete previous (if any) iso
156
echo "cleaning up old versions..."
163
echo "cleaning up old versions..."
157
rm -f "$CDISO" "$CDZIP"
164
rm -f "$CDISO" "$CDZIP"
158
 
165
 
159
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT"
166
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT/boot.img"
160
 
167
 
161
# compress the ISO
168
# compress the ISO
162
zip -mj9 "$CDZIP" "$CDISO"
169
zip -mj9 "$CDZIP" "$CDISO"
163
 
170
 
164
# cleanup temporary things
171
# cleanup temporary things