134 |
mv_fox |
1 |
#!/bin/bash
|
11 |
mv_fox |
2 |
#
|
180 |
mateuszvis |
3 |
# SvarDOS build script
|
791 |
mateusz.vi |
4 |
# http://svardos.org
|
557 |
mateuszvis |
5 |
# Copyright (C) 2016-2022 Mateusz Viste
|
148 |
mv_fox |
6 |
#
|
847 |
mateusz.vi |
7 |
# This script builds floppy and CD images. It should be executed each time that
|
852 |
mateusz.vi |
8 |
# a CORE package has been modified or the build script changed. This is usually
|
|
|
9 |
# done by the cron.sh script, itself called by a cron job.
|
11 |
mv_fox |
10 |
#
|
854 |
mateusz.vi |
11 |
# usage: ./build.sh outputdir buildver [noclean] > logfile
|
194 |
mateuszvis |
12 |
#
|
2 |
mv_fox |
13 |
|
11 |
mv_fox |
14 |
### parameters block starts here ############################################
|
|
|
15 |
|
632 |
mateusz.vi |
16 |
REPOROOT=`realpath ./packages`
|
148 |
mv_fox |
17 |
CUSTFILES=`realpath ./files`
|
2 |
mv_fox |
18 |
|
171 |
mv_fox |
19 |
GENISOIMAGE='' # can be mkisofs, genisoimage or empty for autodetection
|
|
|
20 |
|
11 |
mv_fox |
21 |
### parameters block ends here ##############################################
|
|
|
22 |
|
854 |
mateusz.vi |
23 |
# look for mandatory output dir and build id
|
|
|
24 |
if [ "x$2" == "x" ] ; then
|
|
|
25 |
echo "usage: build.sh outputdir buildver [noclean]"
|
836 |
mateusz.vi |
26 |
exit 1
|
|
|
27 |
fi
|
854 |
mateusz.vi |
28 |
CURDATE="$2"
|
|
|
29 |
PUBDIR=`realpath "$1"`
|
836 |
mateusz.vi |
30 |
|
|
|
31 |
CDROOT="$PUBDIR/tmp_cdroot.build"
|
|
|
32 |
FLOPROOT="$PUBDIR/tmp_floproot.build"
|
|
|
33 |
|
|
|
34 |
|
171 |
mv_fox |
35 |
# auto-detect whether to use mkisofs or genisoimage
|
|
|
36 |
|
|
|
37 |
if [ "x$GENISOIMAGE" == "x" ] ; then
|
180 |
mateuszvis |
38 |
mkisofs --help 2> /dev/null
|
171 |
mv_fox |
39 |
if [ $? -eq 0 ] ; then
|
|
|
40 |
GENISOIMAGE='mkisofs'
|
|
|
41 |
fi
|
|
|
42 |
fi
|
|
|
43 |
|
|
|
44 |
if [ "x$GENISOIMAGE" == "x" ] ; then
|
180 |
mateuszvis |
45 |
genisoimage --help 2> /dev/null
|
171 |
mv_fox |
46 |
if [ $? -eq 0 ] ; then
|
|
|
47 |
GENISOIMAGE='genisoimage'
|
|
|
48 |
fi
|
|
|
49 |
fi
|
|
|
50 |
|
|
|
51 |
if [ "x$GENISOIMAGE" == "x" ] ; then
|
|
|
52 |
echo "ERROR: neither genisoimage nor mkisofs was found on this system"
|
|
|
53 |
exit 1
|
|
|
54 |
fi
|
|
|
55 |
|
|
|
56 |
|
180 |
mateuszvis |
57 |
# abort if anything fails
|
|
|
58 |
set -e
|
134 |
mv_fox |
59 |
|
|
|
60 |
|
300 |
mateuszvis |
61 |
# list of packages to be part of CORE (always installed)
|
791 |
mateusz.vi |
62 |
COREPKGS=`ls -1 'packages/core' | grep -o '^[a-z]*'`
|
192 |
mateuszvis |
63 |
|
300 |
mateuszvis |
64 |
# list of packages to be part of EXTRA (only sometimes installed, typically drivers)
|
|
|
65 |
EXTRAPKGS="pcntpk udvd2"
|
192 |
mateuszvis |
66 |
|
300 |
mateuszvis |
67 |
# all packages
|
|
|
68 |
ALLPKGS="$COREPKGS $EXTRAPKGS"
|
192 |
mateuszvis |
69 |
|
300 |
mateuszvis |
70 |
|
246 |
mateuszvis |
71 |
# prepares image for floppy sets of:
|
|
|
72 |
# $1 cylinders
|
|
|
73 |
# $2 heads (sides)
|
|
|
74 |
# $3 sectors per track
|
|
|
75 |
# $4 size
|
849 |
mateusz.vi |
76 |
# $5 working directory (for temporary files etc)
|
|
|
77 |
# $6 where to put a copy of the image (optional)
|
194 |
mateuszvis |
78 |
function prep_flop {
|
849 |
mateusz.vi |
79 |
WORKDIR="$5/$4"
|
|
|
80 |
mkdir "$WORKDIR"
|
|
|
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/"* ::/
|
196 |
mateuszvis |
83 |
|
|
|
84 |
# now populate the floppies
|
|
|
85 |
curdisk=1
|
300 |
mateuszvis |
86 |
for p in $ALLPKGS ; do
|
196 |
mateuszvis |
87 |
# if copy fails, then probably the floppy is full - try again after
|
|
|
88 |
# creating an additional floppy image
|
849 |
mateusz.vi |
89 |
if ! mcopy -mi "$WORKDIR/disk$curdisk.img" "$CDROOT/$p.svp" ::/ ; then
|
196 |
mateuszvis |
90 |
curdisk=$((curdisk+1))
|
849 |
mateusz.vi |
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" ::/
|
196 |
mateuszvis |
93 |
fi
|
194 |
mateuszvis |
94 |
done
|
196 |
mateuszvis |
95 |
|
205 |
mateuszvis |
96 |
# add a short readme
|
849 |
mateusz.vi |
97 |
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"
|
|
|
99 |
echo "These images are raw floppy disk dumps. To write them on an actual floppy disk, you have to use a low-level sector copying tool, like dd." >> "$WORKDIR/readme.txt"
|
|
|
100 |
echo "" >> "$WORKDIR/readme.txt"
|
862 |
mateusz.vi |
101 |
echo "Latest SvarDOS version is available on the project's homepage: http://svardos.org" >> "$WORKDIR/readme.txt"
|
205 |
mateuszvis |
102 |
|
849 |
mateusz.vi |
103 |
unix2dos "$WORKDIR/readme.txt"
|
205 |
mateuszvis |
104 |
|
279 |
mateuszvis |
105 |
# make a copy of the image, if requested
|
849 |
mateusz.vi |
106 |
if [ "x$6" != "x" ] ; then
|
|
|
107 |
cp "$WORKDIR/disk1.img" $6
|
279 |
mateuszvis |
108 |
fi
|
|
|
109 |
|
196 |
mateuszvis |
110 |
# zip the images (and remove them at the same time)
|
246 |
mateuszvis |
111 |
rm -f "$PUBDIR/svardos-floppy-$4k.zip"
|
849 |
mateusz.vi |
112 |
zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$4k.zip" "$WORKDIR"/*
|
196 |
mateuszvis |
113 |
|
|
|
114 |
# clean up
|
849 |
mateusz.vi |
115 |
rmdir "$WORKDIR"
|
194 |
mateuszvis |
116 |
}
|
|
|
117 |
|
|
|
118 |
|
134 |
mv_fox |
119 |
### actual code flow starts here ############################################
|
|
|
120 |
|
148 |
mv_fox |
121 |
# remember where I am, so I can get back here once all is done
|
11 |
mv_fox |
122 |
origdir=`pwd`
|
|
|
123 |
|
836 |
mateusz.vi |
124 |
echo "###############################################################################"
|
|
|
125 |
echo " STARTING BUILD $CURDATE"
|
|
|
126 |
echo "###############################################################################"
|
|
|
127 |
echo "dest dir: $PUBDIR"
|
|
|
128 |
echo "current time is `date` and it's a beautiful day somewhere in the world"
|
|
|
129 |
echo
|
|
|
130 |
|
189 |
mateuszvis |
131 |
mkdir "$CDROOT"
|
192 |
mateuszvis |
132 |
mkdir "$FLOPROOT"
|
189 |
mateuszvis |
133 |
|
192 |
mateuszvis |
134 |
# add CORE packages to CDROOT + create the list of packages on floppy
|
195 |
mateuszvis |
135 |
for pkg in $COREPKGS ; do
|
791 |
mateusz.vi |
136 |
cp "$REPOROOT/core/$pkg.svp" "$CDROOT/"
|
192 |
mateuszvis |
137 |
echo "$pkg" >> "$FLOPROOT/install.lst"
|
|
|
138 |
done
|
|
|
139 |
|
791 |
mateusz.vi |
140 |
# add EXTRA packages to CDROOT (but not in the list of packages to install)
|
300 |
mateuszvis |
141 |
for pkg in $EXTRAPKGS ; do
|
700 |
mateusz.vi |
142 |
cp "$REPOROOT/$pkg.svp" "$CDROOT/"
|
300 |
mateuszvis |
143 |
done
|
|
|
144 |
|
|
|
145 |
|
836 |
mateusz.vi |
146 |
echo
|
|
|
147 |
echo "### Populating the floppy root at $FLOPROOT"
|
|
|
148 |
echo
|
|
|
149 |
|
862 |
mateusz.vi |
150 |
# prepare the content of the boot (install) floppy, unzipping everything
|
|
|
151 |
# in lowercase (-L) to avoid any case mismatching later in the build process
|
192 |
mateuszvis |
152 |
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
|
862 |
mateusz.vi |
153 |
unzip -CLj "$REPOROOT/core/cpidos.svp" 'cpi/ega*.cpx' -d "$FLOPROOT/"
|
|
|
154 |
unzip -CLj "$REPOROOT/core/command.svp" bin/command.com -d "$FLOPROOT/"
|
|
|
155 |
unzip -CLj "$REPOROOT/core/display.svp" bin/display.exe -d "$FLOPROOT/"
|
|
|
156 |
unzip -CLj "$REPOROOT/core/edit.svp" bin/edit.exe -d "$FLOPROOT/"
|
|
|
157 |
unzip -CLj "$REPOROOT/core/fdapm.svp" bin/fdapm.com -d "$FLOPROOT/"
|
|
|
158 |
unzip -CLj "$REPOROOT/core/fdisk.svp" bin/fdisk.exe bin/fdiskpt.ini -d "$FLOPROOT/"
|
|
|
159 |
unzip -CLj "$REPOROOT/core/format.svp" bin/format.exe -d "$FLOPROOT/"
|
|
|
160 |
unzip -CLj "$REPOROOT/core/kernel.svp" bin/kernel.sys bin/sys.com -d "$FLOPROOT/"
|
|
|
161 |
unzip -CLj "$REPOROOT/core/mem.svp" bin/mem.exe -d "$FLOPROOT/"
|
|
|
162 |
unzip -CLj "$REPOROOT/core/mode.svp" bin/mode.com -d "$FLOPROOT/"
|
|
|
163 |
unzip -CLj "$REPOROOT/core/more.svp" bin/more.exe -d "$FLOPROOT/"
|
|
|
164 |
unzip -CLj "$REPOROOT/core/pkg.svp" bin/pkg.exe -d "$FLOPROOT/"
|
192 |
mateuszvis |
165 |
|
867 |
mateusz.vi |
166 |
# generate a simple autoexec.bat file
|
|
|
167 |
echo '@ECHO OFF' > "$FLOPROOT/autoexec.bat"
|
|
|
168 |
echo '' >> "$FLOPROOT/autoexec.bat"
|
|
|
169 |
echo 'REM Load DISPLAY driver if present' >> "$FLOPROOT/autoexec.bat"
|
|
|
170 |
echo 'IF EXIST DISPLAY.EXE DISPLAY CON=(EGA,,1)' >> "$FLOPROOT/autoexec.bat"
|
|
|
171 |
echo '' >> "$FLOPROOT/autoexec.bat"
|
|
|
172 |
echo 'FDAPM APMDOS' >> "$FLOPROOT/autoexec.bat"
|
|
|
173 |
echo '' >> "$FLOPROOT/autoexec.bat"
|
|
|
174 |
echo 'ECHO.' >> "$FLOPROOT/autoexec.bat"
|
|
|
175 |
echo 'ECHO ********************' >> "$FLOPROOT/autoexec.bat"
|
|
|
176 |
echo 'ECHO WELCOME TO SVARDOS' >> "$FLOPROOT/autoexec.bat"
|
|
|
177 |
echo 'ECHO ********************' >> "$FLOPROOT/autoexec.bat"
|
|
|
178 |
echo "ECHO build: $CURDATE" >> "$FLOPROOT/autoexec.bat"
|
|
|
179 |
echo 'ECHO.' >> "$FLOPROOT/autoexec.bat"
|
|
|
180 |
echo '' >> "$FLOPROOT/autoexec.bat"
|
|
|
181 |
echo "INSTALL $CURDATE" >> "$FLOPROOT/autoexec.bat"
|
|
|
182 |
unix2dos "$FLOPROOT/autoexec.bat"
|
862 |
mateusz.vi |
183 |
|
867 |
mateusz.vi |
184 |
|
836 |
mateusz.vi |
185 |
echo
|
862 |
mateusz.vi |
186 |
echo "### Computing the USB image"
|
|
|
187 |
echo
|
|
|
188 |
|
|
|
189 |
# prepare the USB bootable image
|
|
|
190 |
USBIMG=$PUBDIR/svardos-usb.img
|
|
|
191 |
cp files/boot-svardos.img $USBIMG
|
|
|
192 |
mcopy -sQm -i "$USBIMG@@32256" "$FLOPROOT/"* ::/
|
|
|
193 |
for p in $ALLPKGS ; do
|
|
|
194 |
mcopy -mi "$USBIMG@@32256" "$CDROOT/$p.svp" ::/
|
|
|
195 |
done
|
|
|
196 |
|
|
|
197 |
# compress the USB image
|
|
|
198 |
zip -mj9 "$PUBDIR/svardos-$CURDATE-usb.zip" "$USBIMG"
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
echo
|
836 |
mateusz.vi |
202 |
echo "### Creating floppy images"
|
|
|
203 |
echo
|
|
|
204 |
|
194 |
mateuszvis |
205 |
# build the boot (CD) floppy image
|
192 |
mateuszvis |
206 |
export MTOOLS_NO_VFAT=1
|
|
|
207 |
|
246 |
mateuszvis |
208 |
# prepare images for floppies in different sizes (args are C H S SIZE)
|
849 |
mateusz.vi |
209 |
prep_flop 80 2 36 2880 "$PUBDIR" "$CDROOT/boot.img"
|
|
|
210 |
prep_flop 80 2 18 1440 "$PUBDIR"
|
|
|
211 |
prep_flop 80 2 15 1200 "$PUBDIR"
|
|
|
212 |
prep_flop 80 2 9 720 "$PUBDIR"
|
194 |
mateuszvis |
213 |
|
862 |
mateusz.vi |
214 |
# special case for 360K diskettes: some files must be deleted to make some room,
|
|
|
215 |
# for this reason the 360K floppy must be generated as last (after all other
|
|
|
216 |
# floppies and after the USB image)
|
|
|
217 |
rm "$FLOPROOT"/*.cpx
|
|
|
218 |
rm "$FLOPROOT"/install.lng
|
|
|
219 |
rm "$FLOPROOT"/display.exe
|
|
|
220 |
rm "$FLOPROOT"/mode.com
|
|
|
221 |
rm "$FLOPROOT"/edit.*
|
|
|
222 |
# another hack: the COMMAND.SVP package must be stripped from any cmd-?? files
|
|
|
223 |
# otherwise it does not fit on a 360K floppy
|
|
|
224 |
zip -d "$CDROOT/command.svp" 'BIN/CMD-??.COM'
|
|
|
225 |
#
|
|
|
226 |
prep_flop 40 2 9 360 "$PUBDIR"
|
|
|
227 |
# now put back the original command.svp package (ISO CD still needs to be built)
|
|
|
228 |
cp "$REPOROOT/core/command.svp" "$CDROOT/"
|
|
|
229 |
|
|
|
230 |
|
836 |
mateusz.vi |
231 |
echo
|
|
|
232 |
echo "### Computing DOSEMU.zip"
|
|
|
233 |
echo
|
|
|
234 |
|
321 |
mateuszvis |
235 |
# prepare the DOSEMU boot zip
|
836 |
mateusz.vi |
236 |
DOSEMUDIR="$PUBDIR/tmp_dosemu-prep-files.build"
|
321 |
mateuszvis |
237 |
mkdir "$DOSEMUDIR"
|
322 |
mateuszvis |
238 |
# INSTALL.BAT
|
624 |
mateuszvis |
239 |
echo 'IF NOT EXIST C:\TEMP\NUL MKDIR C:\TEMP' >> "$DOSEMUDIR/install.bat"
|
322 |
mateuszvis |
240 |
echo 'mkdir %DOSDIR%' >> "$DOSEMUDIR/install.bat"
|
|
|
241 |
echo 'mkdir %DOSDIR%\cfg' >> "$DOSEMUDIR/install.bat"
|
|
|
242 |
echo 'ECHO # pkg config file - specifies locations where packages should be installed >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
|
|
243 |
echo 'ECHO DIR PROGS C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
|
|
244 |
echo 'ECHO DIR GAMES C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
|
|
245 |
echo 'ECHO DIR DRIVERS C:\DRIVERS\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
|
|
246 |
echo 'ECHO DIR DEVEL C:\DEVEL\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
321 |
mateuszvis |
247 |
for p in $COREPKGS ; do
|
700 |
mateusz.vi |
248 |
cp "$CDROOT/$p.svp" "$DOSEMUDIR/"
|
|
|
249 |
echo "pkg install $p.svp" >> "$DOSEMUDIR/install.bat"
|
|
|
250 |
echo "del $p.svp" >> "$DOSEMUDIR/install.bat"
|
321 |
mateuszvis |
251 |
done
|
322 |
mateuszvis |
252 |
echo 'ECHO my_ip = dhcp >> %DOSDIR%\CFG\WATTCP.CFG' >> "$DOSEMUDIR/install.bat"
|
|
|
253 |
echo 'del pkg.exe' >> "$DOSEMUDIR/install.bat"
|
326 |
mateuszvis |
254 |
echo 'ECHO SHELLHIGH=C:\SVARDOS\BIN\COMMAND.COM /P >> C:\CONFIG.SYS' >> "$DOSEMUDIR/install.bat"
|
322 |
mateuszvis |
255 |
echo 'ECHO.' >> "$DOSEMUDIR/install.bat"
|
|
|
256 |
echo 'ECHO -------------------------' >> "$DOSEMUDIR/install.bat"
|
|
|
257 |
echo 'ECHO SVARDOS SETUP COMPLETED ' >> "$DOSEMUDIR/install.bat"
|
|
|
258 |
echo 'ECHO -------------------------' >> "$DOSEMUDIR/install.bat"
|
|
|
259 |
echo 'ECHO.' >> "$DOSEMUDIR/install.bat"
|
791 |
mateusz.vi |
260 |
unzip -Cj "$REPOROOT/core/kernel.svp" bin/kernel.sys -d "$DOSEMUDIR/"
|
|
|
261 |
unzip -Cj "$REPOROOT/core/command.svp" bin/command.com -d "$DOSEMUDIR/"
|
|
|
262 |
unzip -Cj "$REPOROOT/core/pkg.svp" bin/pkg.exe -d "$DOSEMUDIR/"
|
322 |
mateuszvis |
263 |
# CONFIG.SYS
|
|
|
264 |
echo 'FILES=50' >> "$DOSEMUDIR/config.sys"
|
|
|
265 |
echo 'DOS=HIGH,UMB' >> "$DOSEMUDIR/config.sys"
|
326 |
mateuszvis |
266 |
echo 'DOSDATA=UMB' >> "$DOSEMUDIR/config.sys"
|
325 |
mateuszvis |
267 |
echo 'DEVICE=D:\dosemu\emufs.sys' >> "$DOSEMUDIR/config.sys"
|
322 |
mateuszvis |
268 |
echo 'DEVICE=D:\dosemu\umb.sys' >> "$DOSEMUDIR/config.sys"
|
325 |
mateuszvis |
269 |
echo 'DEVICEHIGH=D:\dosemu\ems.sys' >> "$DOSEMUDIR/config.sys"
|
322 |
mateuszvis |
270 |
echo 'INSTALL=D:\dosemu\emufs.com' >> "$DOSEMUDIR/config.sys"
|
|
|
271 |
# AUTOEXEC.BAT
|
321 |
mateuszvis |
272 |
echo "@ECHO OFF" >> "$DOSEMUDIR/autoexec.bat"
|
322 |
mateuszvis |
273 |
echo 'SET DOSDIR=C:\SVARDOS' >> "$DOSEMUDIR/autoexec.bat"
|
|
|
274 |
echo 'SET WATTCP.CFG=%DOSDIR%\CFG' >> "$DOSEMUDIR/autoexec.bat"
|
|
|
275 |
echo 'SET DIRCMD=/p/ogne' >> "$DOSEMUDIR/autoexec.bat"
|
624 |
mateuszvis |
276 |
echo 'SET TEMP=C:\TEMP' >> "$DOSEMUDIR/autoexec.bat"
|
322 |
mateuszvis |
277 |
echo 'PATH %DOSDIR%\BIN' >> "$DOSEMUDIR/autoexec.bat"
|
|
|
278 |
echo "" >> "$DOSEMUDIR/autoexec.bat"
|
|
|
279 |
echo "REM *** this is a one-time setup script used only during first initialization ***" >> "$DOSEMUDIR/autoexec.bat"
|
|
|
280 |
echo 'IF EXIST INSTALL.BAT CALL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|
|
|
281 |
echo 'IF EXIST INSTALL.BAT DEL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|
|
|
282 |
echo "" >> "$DOSEMUDIR/autoexec.bat"
|
321 |
mateuszvis |
283 |
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
|
|
|
284 |
echo "ECHO Welcome to SvarDOS (powered by DOSEMU)! Type HELP if you are lost." >> "$DOSEMUDIR/autoexec.bat"
|
|
|
285 |
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
|
|
|
286 |
rm -f "$PUBDIR/svardos-dosemu.zip"
|
643 |
mateusz.vi |
287 |
zip -rm9jk "$PUBDIR/svardos-$CURDATE-dosemu.zip" "$DOSEMUDIR"
|
321 |
mateuszvis |
288 |
rmdir "$DOSEMUDIR"
|
|
|
289 |
|
836 |
mateusz.vi |
290 |
echo
|
|
|
291 |
echo "### Generating ISO CD image"
|
|
|
292 |
echo
|
|
|
293 |
|
643 |
mateusz.vi |
294 |
CDISO="$PUBDIR/svardos-$CURDATE-cd.iso"
|
|
|
295 |
CDZIP="$PUBDIR/svardos-$CURDATE-cd.zip"
|
194 |
mateuszvis |
296 |
|
279 |
mateuszvis |
297 |
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT/boot.img"
|
2 |
mv_fox |
298 |
|
204 |
mateuszvis |
299 |
# compress the ISO
|
|
|
300 |
zip -mj9 "$CDZIP" "$CDISO"
|
|
|
301 |
|
192 |
mateuszvis |
302 |
# cleanup temporary things
|
836 |
mateusz.vi |
303 |
if [ "x$2" != "xnoclean" ] ; then
|
|
|
304 |
echo
|
904 |
bttr |
305 |
echo "### Cleanup of temporary directories:"
|
836 |
mateusz.vi |
306 |
echo "# $CDROOT"
|
|
|
307 |
echo "# $FLOPROOT"
|
|
|
308 |
echo
|
194 |
mateuszvis |
309 |
rm -rf "$CDROOT" "$FLOPROOT"
|
|
|
310 |
fi
|
189 |
mateuszvis |
311 |
|
11 |
mv_fox |
312 |
cd "$origdir"
|
|
|
313 |
|
836 |
mateusz.vi |
314 |
echo
|
|
|
315 |
echo "### ALL DONE! ###"
|
16 |
mv_fox |
316 |
|
2 |
mv_fox |
317 |
exit 0
|