Subversion Repositories SvarDOS

Rev

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

Rev 1750 Rev 1772
Line 342... Line 342...
342
prep_flop 80 2  9  720 "$PUBDIR" "720K-EN_ONLY" "$COREPKGS"
342
prep_flop 80 2  9  720 "$PUBDIR" "720K-EN_ONLY" "$COREPKGS"
343
prep_flop 40 2  9  360 "$PUBDIR" "360K-EN_ONLY" "$COREPKGS"
343
prep_flop 40 2  9  360 "$PUBDIR" "360K-EN_ONLY" "$COREPKGS"
344
 
344
 
345
 
345
 
346
###############################################################################
346
###############################################################################
-
 
347
# compute the svardos stub, useful for migrating alien DOS systems to SvarDOS #
-
 
348
###############################################################################
-
 
349
 
-
 
350
echo
-
 
351
echo "### generating the pkgstub zip archive"
-
 
352
 
-
 
353
mkdir "$PUBDIR"/pkgstub
-
 
354
unzip -jC "$REPOROOTCORE"/pkgnet.svp bin/pkgnet.exe -d "$PUBDIR"/pkgstub
-
 
355
unzip -jC "$REPOROOTCORE"/pkg.svp bin/pkg.exe -d "$PUBDIR"/pkgstub
-
 
356
 
-
 
357
cat <<EOF > "$PUBDIR"/pkgstub/readme.txt
-
 
358
 
-
 
359
        SvarDOS stub, or how to plant a SvarDOS seed in a foreign land
-
 
360
        --------------------------------------------------------------
-
 
361
 
-
 
362
This archive contains files that allow to install a SvarDOS stub within
-
 
363
another DOS system. This makes it possible to use the SvarDOS online repository
-
 
364
of packages on non-SvarDOS systems, assuming you have a network card connected
-
 
365
to the internet and a suitable packet driver.
-
 
366
 
-
 
367
If you do not have internet connectivity, then you will still be able to
-
 
368
install SvarDOS packages (*.SVP) once you copy them to your PC. You can fetch
-
 
369
SvarDOS packages at <http://svardos.org>.
-
 
370
 
-
 
371
Follow the guide now:
-
 
372
 
-
 
373
=======================================
-
 
374
MKDIR C:\\SVARDOS
-
 
375
MKDIR C:\\SVARDOS\\CFG
-
 
376
 
-
 
377
SET WATTCP.CFG=C:\\SVARDOS\\CFG
-
 
378
SET DOSDIR=C:\\SVARDOS
-
 
379
SET LANG=EN
-
 
380
SET PATH=%PATH%;C:\SVARDOS
-
 
381
 
-
 
382
COPY *.EXE C:\\SVARDOS\\
-
 
383
COPY *.CFG C:\\SVARDOS\CFG\\
-
 
384
=======================================
-
 
385
 
-
 
386
If in doubt, reach out to us at <http://svardos.org>.
-
 
387
EOF
-
 
388
 
-
 
389
cat <<EOF > "$PUBDIR"/pkgstub/wattcp.cfg
-
 
390
# Rely on DHCP by default
-
 
391
my_ip = dhcp
-
 
392
 
-
 
393
# modify (and uncomment) these if you have a fix IP setup:
-
 
394
#
-
 
395
#my_ip = 0.0.0.0  ; IP address
-
 
396
#netmask = 255.255.255.0  ; netmask
-
 
397
#nameserver = 0.0.0.0  ; primary DNS, mandatory if not using DHCP
-
 
398
#nameserver = 0.0.0.0  ; secondary DNS, optional
-
 
399
#gateway = 0.0.0.0  ; default gateway
-
 
400
EOF
-
 
401
 
-
 
402
cat <<EOF > "$PUBDIR"/pkgstub/pkg.cfg
-
 
403
# pkg config file - specifies locations where SvarDOS packages will be installed
-
 
404
 
-
 
405
# SvarDOS core files
-
 
406
DIR BIN C:\\SVARDOS\\
-
 
407
 
-
 
408
# General location for programs
-
 
409
DIR PROGS C:\\
-
 
410
 
-
 
411
# Games
-
 
412
DIR GAMES C:\\
-
 
413
 
-
 
414
# Drivers
-
 
415
DIR DRIVERS C:\\DRIVERS\\
-
 
416
 
-
 
417
# Development tools
-
 
418
DIR DEVEL C:\\DEVEL\\
-
 
419
EOF
-
 
420
 
-
 
421
zip -m -k9jr "$PUBDIR"/svarstub.zip "$PUBDIR"/pkgstub
-
 
422
rmdir "$PUBDIR"/pkgstub
-
 
423
 
-
 
424
 
-
 
425
 
-
 
426
###############################################################################
347
# cleanup all temporary things                                                #
427
# cleanup all temporary things                                                #
348
###############################################################################
428
###############################################################################
349
 
429
 
350
if [ "x$2" != "xnoclean" ] ; then
430
if [ "x$2" != "xnoclean" ] ; then
351
  echo
431
  echo