Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
#
|
2 |
#
|
3 |
# SvarDOS build script
|
3 |
# SvarDOS build script
|
4 |
# http://svardos.org
|
4 |
# http://svardos.org
|
5 |
# Copyright (C) 2016-2023 Mateusz Viste
|
5 |
# Copyright (C) 2016-2024 Mateusz Viste
|
6 |
#
|
6 |
#
|
7 |
# This script builds floppy and CD images. It should be executed each time that
|
7 |
# This script builds floppy and CD images. It should be executed each time that
|
8 |
# a CORE package has been modified or the build script changed. This is usually
|
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.
|
9 |
# done by the cron.sh script, itself called by a cron job.
|
10 |
#
|
10 |
#
|
Line 239... |
Line 239... |
239 |
# INSTALL.BAT
|
239 |
# INSTALL.BAT
|
240 |
echo 'IF NOT EXIST C:\TEMP\NUL MKDIR C:\TEMP' >> "$DOSEMUDIR/install.bat"
|
240 |
echo 'IF NOT EXIST C:\TEMP\NUL MKDIR C:\TEMP' >> "$DOSEMUDIR/install.bat"
|
241 |
echo 'mkdir %DOSDIR%' >> "$DOSEMUDIR/install.bat"
|
241 |
echo 'mkdir %DOSDIR%' >> "$DOSEMUDIR/install.bat"
|
242 |
echo 'mkdir %DOSDIR%\cfg' >> "$DOSEMUDIR/install.bat"
|
242 |
echo 'mkdir %DOSDIR%\cfg' >> "$DOSEMUDIR/install.bat"
|
243 |
echo 'ECHO # pkg config file - specifies locations where packages should be installed >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
243 |
echo 'ECHO # pkg config file - specifies locations where packages should be installed >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
- |
|
244 |
echo 'ECHO DIR BIN %DOSDIR% >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
244 |
echo 'ECHO DIR PROGS C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
245 |
echo 'ECHO DIR PROGS C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
245 |
echo 'ECHO DIR GAMES C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
246 |
echo 'ECHO DIR GAMES C:\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
246 |
echo 'ECHO DIR DRIVERS C:\DRIVERS\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
247 |
echo 'ECHO DIR DRIVERS C:\DRIVERS\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
247 |
echo 'ECHO DIR DEVEL C:\DEVEL\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
248 |
echo 'ECHO DIR DEVEL C:\DEVEL\ >> %DOSDIR%\cfg\pkg.cfg' >> "$DOSEMUDIR/install.bat"
|
248 |
for p in $COREPKGS ; do
|
249 |
for p in $COREPKGS ; do
|
Line 282... |
Line 283... |
282 |
echo "@ECHO OFF" >> "$DOSEMUDIR/autoexec.bat"
|
283 |
echo "@ECHO OFF" >> "$DOSEMUDIR/autoexec.bat"
|
283 |
echo 'SET DOSDIR=C:\SVARDOS' >> "$DOSEMUDIR/autoexec.bat"
|
284 |
echo 'SET DOSDIR=C:\SVARDOS' >> "$DOSEMUDIR/autoexec.bat"
|
284 |
echo 'SET WATTCP.CFG=%DOSDIR%\CFG' >> "$DOSEMUDIR/autoexec.bat"
|
285 |
echo 'SET WATTCP.CFG=%DOSDIR%\CFG' >> "$DOSEMUDIR/autoexec.bat"
|
285 |
echo 'SET DIRCMD=/p/ogne' >> "$DOSEMUDIR/autoexec.bat"
|
286 |
echo 'SET DIRCMD=/p/ogne' >> "$DOSEMUDIR/autoexec.bat"
|
286 |
echo 'SET TEMP=C:\TEMP' >> "$DOSEMUDIR/autoexec.bat"
|
287 |
echo 'SET TEMP=C:\TEMP' >> "$DOSEMUDIR/autoexec.bat"
|
287 |
echo 'PATH %DOSDIR%\BIN' >> "$DOSEMUDIR/autoexec.bat"
|
288 |
echo 'PATH %DOSDIR%' >> "$DOSEMUDIR/autoexec.bat"
|
288 |
echo "" >> "$DOSEMUDIR/autoexec.bat"
|
289 |
echo "" >> "$DOSEMUDIR/autoexec.bat"
|
289 |
echo 'IF NOT EXIST INSTALL.BAT GOTO NORMBOOT' >> "$DOSEMUDIR/autoexec.bat"
|
290 |
echo 'IF NOT EXIST INSTALL.BAT GOTO NORMBOOT' >> "$DOSEMUDIR/autoexec.bat"
|
290 |
echo "REM *** this is a one-time setup script used only during first initialization ***" >> "$DOSEMUDIR/autoexec.bat"
|
291 |
echo "REM *** this is a one-time setup script used only during first initialization ***" >> "$DOSEMUDIR/autoexec.bat"
|
291 |
echo 'CALL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|
292 |
echo 'CALL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|
292 |
echo 'DEL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|
293 |
echo 'DEL INSTALL.BAT' >> "$DOSEMUDIR/autoexec.bat"
|