Subversion Repositories SvarDOS

Rev

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

Rev 321 Rev 322
Line 180... Line 180...
180
#prep_flop 96 64 32 98304 "$PUBDIR/svardos-zip100.img" # ZIP 100M (for USB boot in "USB-ZIP mode")
180
#prep_flop 96 64 32 98304 "$PUBDIR/svardos-zip100.img" # ZIP 100M (for USB boot in "USB-ZIP mode")
181
 
181
 
182
# prepare the DOSEMU boot zip
182
# prepare the DOSEMU boot zip
183
DOSEMUDIR='dosemu-prep-files'
183
DOSEMUDIR='dosemu-prep-files'
184
mkdir "$DOSEMUDIR"
184
mkdir "$DOSEMUDIR"
-
 
185
# INSTALL.BAT
-
 
186
echo 'IF NOT EXIST C:\TMP\NUL MKDIR C:\TMP'
185
echo "mkdir %DOSDIR%" >> "$DOSEMUDIR/install.bat"
187
echo 'mkdir %DOSDIR%' >> "$DOSEMUDIR/install.bat"
186
echo "mkdir %DOSDIR%\\cfg" >> "$DOSEMUDIR/install.bat"
188
echo 'mkdir %DOSDIR%\cfg' >> "$DOSEMUDIR/install.bat"
187
echo "ECHO # pkg config file - specifies locations where packages should be installed >> %DOSDIR%\\cfg\\pkg.cfg" >> "$DOSEMUDIR/install.bat"
189
echo 'ECHO # pkg config file - specifies locations where packages should be installed >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
188
echo "ECHO DIR PROGS C:\\ >> %DOSDIR%\\cfg\\pkg.cfg" >> "$DOSEMUDIR/install.bat"
190
echo 'ECHO DIR PROGS C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
189
echo "ECHO DIR GAMES C:\\ >> %DOSDIR%\\cfg\\pkg.cfg" >> "$DOSEMUDIR/install.bat"
191
echo 'ECHO DIR GAMES C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
190
echo "ECHO DIR DRIVERS C:\\DRIVERS\\ >> %DOSDIR%\\cfg\\pkg.cfg" >> "$DOSEMUDIR/install.bat"
192
echo 'ECHO DIR DRIVERS C:\DRIVERS\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
191
echo "ECHO DIR DEVEL C:\\DEVEL\\ >> %DOSDIR%\\cfg\\pkg.cfg" >> "$DOSEMUDIR/install.bat"
193
echo 'ECHO DIR DEVEL C:\DEVEL\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
192
for p in $COREPKGS ; do
194
for p in $COREPKGS ; do
193
  cp "$CDROOT/$p.zip" "$DOSEMUDIR/"
195
  cp "$CDROOT/$p.zip" "$DOSEMUDIR/"
194
  echo "pkg install $p.zip" >> "$DOSEMUDIR/install.bat"
196
  echo "pkg install $p.zip" >> "$DOSEMUDIR/install.bat"
195
  echo "del $p.zip" >> "$DOSEMUDIR/install.bat"
197
  echo "del $p.zip" >> "$DOSEMUDIR/install.bat"
196
done
198
done
-
 
199
echo 'ECHO my_ip = dhcp >> %DOSDIR%\CFG\WATTCP.CFG' >> "$DOSEMUDIR/install.bat"
197
echo "del pkg.exe" >> "$DOSEMUDIR/install.bat"
200
echo 'del pkg.exe' >> "$DOSEMUDIR/install.bat"
-
 
201
echo 'ECHO.' >> "$DOSEMUDIR/install.bat"
-
 
202
echo 'ECHO -------------------------' >> "$DOSEMUDIR/install.bat"
-
 
203
echo 'ECHO  SVARDOS SETUP COMPLETED ' >> "$DOSEMUDIR/install.bat"
-
 
204
echo 'ECHO -------------------------' >> "$DOSEMUDIR/install.bat"
-
 
205
echo 'ECHO.' >> "$DOSEMUDIR/install.bat"
198
unzip -Cj packages/kernel.zip bin/kernel.sys -d "$DOSEMUDIR/"
206
unzip -Cj packages/kernel.zip bin/kernel.sys -d "$DOSEMUDIR/"
199
unzip -Cj packages/command.zip bin/command.com -d "$DOSEMUDIR/"
207
unzip -Cj packages/command.zip bin/command.com -d "$DOSEMUDIR/"
200
unzip -Cj packages/pkg.zip bin/pkg.exe -d "$DOSEMUDIR/"
208
unzip -Cj packages/pkg.zip bin/pkg.exe -d "$DOSEMUDIR/"
-
 
209
# CONFIG.SYS
201
echo "FILES=50" >> "$DOSEMUDIR/config.sys"
210
echo 'FILES=50' >> "$DOSEMUDIR/config.sys"
-
 
211
echo 'DOS=HIGH,UMB' >> "$DOSEMUDIR/config.sys"
-
 
212
echo 'DEVICE=D:\dosemu\umb.sys' >> "$DOSEMUDIR/config.sys"
-
 
213
echo 'DEVICE=D:\dosemu\ems.sys' >> "$DOSEMUDIR/config.sys"
-
 
214
echo 'DEVICE=D:\dosemu\emufs.sys' >> "$DOSEMUDIR/config.sys"
-
 
215
echo 'INSTALL=D:\dosemu\emufs.com' >> "$DOSEMUDIR/config.sys"
-
 
216
# AUTOEXEC.BAT
202
echo "@ECHO OFF" >> "$DOSEMUDIR/autoexec.bat"
217
echo "@ECHO OFF" >> "$DOSEMUDIR/autoexec.bat"
203
echo "SET DOSDIR=C:\\SVARDOS" >> "$DOSEMUDIR/autoexec.bat"
218
echo 'SET DOSDIR=C:\SVARDOS' >> "$DOSEMUDIR/autoexec.bat"
204
echo "PATH %DOSDIR%\\BIN" >> "$DOSEMUDIR/autoexec.bat"
219
echo 'SET WATTCP.CFG=%DOSDIR%\CFG' >> "$DOSEMUDIR/autoexec.bat"
205
echo "IF EXIST INSTALL.BAT GOTO SETUP" >> "$DOSEMUDIR/autoexec.bat"
-
 
206
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
220
echo 'SET DIRCMD=/p/ogne' >> "$DOSEMUDIR/autoexec.bat"
207
echo "ECHO Welcome to SvarDOS (powered by DOSEMU)! Type HELP if you are lost." >> "$DOSEMUDIR/autoexec.bat"
-
 
208
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
221
echo 'SET TEMP=C:\TMP' >> "$DOSEMUDIR/autoexec.bat"
209
echo "GOTO DONE" >> "$DOSEMUDIR/autoexec.bat"
222
echo 'PATH %DOSDIR%\BIN' >> "$DOSEMUDIR/autoexec.bat"
210
echo "" >> "$DOSEMUDIR/autoexec.bat"
223
echo "" >> "$DOSEMUDIR/autoexec.bat"
211
echo "REM *** this is a one-time setup script used only during first initialization ***" >> "$DOSEMUDIR/autoexec.bat"
224
echo "REM *** this is a one-time setup script used only during first initialization ***" >> "$DOSEMUDIR/autoexec.bat"
-
 
225
echo 'IF EXIST INSTALL.BAT CALL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
212
echo ":SETUP" >> "$DOSEMUDIR/autoexec.bat"
226
echo 'IF EXIST INSTALL.BAT DEL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
213
echo "CALL INSTALL.BAT" >> "$DOSEMUDIR/autoexec.bat"
227
echo "" >> "$DOSEMUDIR/autoexec.bat"
214
echo "DEL INSTALL.BAT" >> "$DOSEMUDIR/autoexec.bat"
228
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
-
 
229
echo "ECHO Welcome to SvarDOS (powered by DOSEMU)! Type HELP if you are lost." >> "$DOSEMUDIR/autoexec.bat"
215
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
230
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
216
echo "ECHO -----------------------------------------------------" >> "$DOSEMUDIR/autoexec.bat"
-
 
217
echo "ECHO  SVARDOS SETUP COMPLETED. PLEASE RESTART DOSEMU NOW." >> "$DOSEMUDIR/autoexec.bat"
-
 
218
echo "PAUSE -----------------------------------------------------" >> "$DOSEMUDIR/autoexec.bat"
-
 
219
echo ":DONE" >> "$DOSEMUDIR/autoexec.bat"
-
 
220
rm -f "$PUBDIR/svardos-dosemu.zip"
231
rm -f "$PUBDIR/svardos-dosemu.zip"
221
zip -rm9jk "$PUBDIR/svardos-dosemu.zip" "$DOSEMUDIR"
232
zip -rm9jk "$PUBDIR/svardos-dosemu.zip" "$DOSEMUDIR"
222
rmdir "$DOSEMUDIR"
233
rmdir "$DOSEMUDIR"
223
 
234
 
224
# prepare the USB bootable image
235
# prepare the USB bootable image