/build.sh |
---|
1,12 → 1,12 |
#!/bin/bash |
# |
# SvarDOS build script |
# http://svardos.osdn.io |
# http://svardos.org |
# Copyright (C) 2016-2022 Mateusz Viste |
# |
# This script generates the SvarDOS repository index and builds ISO CD images. |
# It should be executed each time that a package has been modified, added or |
# removed. |
# This script generates the SvarDOS repository index and builds floppy and CD |
# images. It should be executed each time that a CORE package has been |
# modified, added or removed. |
# |
# usage: ./build.sh [noclean] |
# |
14,11 → 14,10 |
### parameters block starts here ############################################ |
CURDATE=`date +%Y%m%d` |
PKGDIR=`realpath ./packages` |
REPOROOT=`realpath ./packages` |
PUBDIR=`realpath ./website/download`/$CURDATE |
CDROOT=`realpath ./cdroot` |
FLOPROOT=`realpath ./floproot` |
CDROOT=`realpath ./tmp_cdroot.build` |
FLOPROOT=`realpath ./tmp_floproot.build` |
CUSTFILES=`realpath ./files` |
GENISOIMAGE='' # can be mkisofs, genisoimage or empty for autodetection |
52,7 → 51,7 |
# list of packages to be part of CORE (always installed) |
COREPKGS="amb attrib chkdsk choice command cpidos debug deltree diskcopy display dosfsck edit fc fdapm fdisk find format help himemx kernel keyb label localcfg mem mode more move pkg pkgnet shsucdx sort tree" |
COREPKGS=`ls -1 'packages/core' | grep -o '^[a-z]*'` |
# list of packages to be part of EXTRA (only sometimes installed, typically drivers) |
EXTRAPKGS="pcntpk udvd2" |
118,11 → 117,11 |
# add CORE packages to CDROOT + create the list of packages on floppy |
for pkg in $COREPKGS ; do |
cp "$REPOROOT/$pkg.svp" "$CDROOT/" |
cp "$REPOROOT/core/$pkg.svp" "$CDROOT/" |
echo "$pkg" >> "$FLOPROOT/install.lst" |
done |
# add EXTRA packages to CDROOT (but not in the list of packages so instal won't install them by default) |
# add EXTRA packages to CDROOT (but not in the list of packages to install) |
for pkg in $EXTRAPKGS ; do |
cp "$REPOROOT/$pkg.svp" "$CDROOT/" |
done |
130,18 → 129,18 |
# prepare the content of the boot (install) floppy |
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/" |
unzip -Cj packages/cpidos.svp 'cpi/ega*.cpx' -d "$FLOPROOT/" |
unzip -Cj packages/command.svp bin/command.com -d "$FLOPROOT/" |
unzip -Cj packages/display.svp bin/display.exe -d "$FLOPROOT/" |
unzip -Cj packages/edit.svp bin/edit.exe -d "$FLOPROOT/" |
unzip -Cj packages/fdapm.svp bin/fdapm.com -d "$FLOPROOT/" |
unzip -Cj packages/fdisk.svp bin/fdisk.exe bin/fdiskpt.ini -d "$FLOPROOT/" |
unzip -Cj packages/format.svp bin/format.exe -d "$FLOPROOT/" |
unzip -Cj packages/kernel.svp bin/kernel.sys bin/sys.com -d "$FLOPROOT/" |
unzip -Cj packages/mem.svp bin/mem.exe -d "$FLOPROOT/" |
unzip -Cj packages/mode.svp bin/mode.com -d "$FLOPROOT/" |
unzip -Cj packages/more.svp bin/more.exe -d "$FLOPROOT/" |
unzip -Cj packages/pkg.svp bin/pkg.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/cpidos.svp" 'cpi/ega*.cpx' -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/command.svp" bin/command.com -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/display.svp" bin/display.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/edit.svp" bin/edit.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/fdapm.svp" bin/fdapm.com -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/fdisk.svp" bin/fdisk.exe bin/fdiskpt.ini -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/format.svp" bin/format.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/kernel.svp" bin/kernel.sys bin/sys.com -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/mem.svp" bin/mem.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/mode.svp" bin/mode.com -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/more.svp" bin/more.exe -d "$FLOPROOT/" |
unzip -Cj "$REPOROOT/core/pkg.svp" bin/pkg.exe -d "$FLOPROOT/" |
# build the boot (CD) floppy image |
export MTOOLS_NO_VFAT=1 |
156,7 → 155,7 |
#prep_flop 96 64 32 98304 "$PUBDIR/svardos-zip100.img" # ZIP 100M (for USB boot in "USB-ZIP mode") |
# prepare the DOSEMU boot zip |
DOSEMUDIR='dosemu-prep-files' |
DOSEMUDIR='tmp_dosemu-prep-files.build' |
mkdir "$DOSEMUDIR" |
# INSTALL.BAT |
echo 'IF NOT EXIST C:\TEMP\NUL MKDIR C:\TEMP' >> "$DOSEMUDIR/install.bat" |
180,9 → 179,9 |
echo 'ECHO SVARDOS SETUP COMPLETED ' >> "$DOSEMUDIR/install.bat" |
echo 'ECHO -------------------------' >> "$DOSEMUDIR/install.bat" |
echo 'ECHO.' >> "$DOSEMUDIR/install.bat" |
unzip -Cj packages/kernel.svp bin/kernel.sys -d "$DOSEMUDIR/" |
unzip -Cj packages/command.svp bin/command.com -d "$DOSEMUDIR/" |
unzip -Cj packages/pkg.svp bin/pkg.exe -d "$DOSEMUDIR/" |
unzip -Cj "$REPOROOT/core/kernel.svp" bin/kernel.sys -d "$DOSEMUDIR/" |
unzip -Cj "$REPOROOT/core/command.svp" bin/command.com -d "$DOSEMUDIR/" |
unzip -Cj "$REPOROOT/core/pkg.svp" bin/pkg.exe -d "$DOSEMUDIR/" |
# CONFIG.SYS |
echo 'FILES=50' >> "$DOSEMUDIR/config.sys" |
echo 'DOS=HIGH,UMB' >> "$DOSEMUDIR/config.sys" |
/buildidx/buildidx.php |
---|
32,7 → 32,7 |
22 sep 2012: forked 1st version from FDUPDATE builder |
*/ |
$PVER = "20220216"; |
$PVER = "20220217"; |
// computes the BSD sum of a file and returns it |
113,6 → 113,18 |
} |
// returns an array that contains CORE packages (populated from the core subdirectory in pkgdir) |
function load_core_list($repodir) { |
$res = array(); |
foreach (scandir($repodir . '/core/') as $f) { |
if (!preg_match('/\.svp$/', $f)) continue; |
$res[] = explode('.', $f)[0]; |
} |
return($res); |
} |
// ***************** MAIN ROUTINE ********************************************* |
//echo "SvarDOS repository index generator ver {$PVER}\n"; |
130,7 → 142,7 |
// load the list of CORE packages |
$core_packages_list = explode(' ', 'amb attrib chkdsk choice command cpidos debug deltree diskcopy display dosfsck edit fc fdapm fdisk find format help himemx kernel keyb label localcfg mem mode more move pkg pkgnet shsucdx sort tree'); |
$core_packages_list = load_core_list($repodir); |
// do a list of all svp packages with their available versions and descriptions |
/packages/core/_readme.txt |
---|
0,0 → 1,5 |
This directory contains the list of CORE packages, as symbolic links pointing |
to *.svp packages in the repository. |
It is used by the script building floppy installation images, as well as by |
buildidx to perform specific checks on CORE packages. |
/packages/core/amb.svp |
---|
0,0 → 1,0 |
link ../amb.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/attrib.svp |
---|
0,0 → 1,0 |
link ../attrib.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/chkdsk.svp |
---|
0,0 → 1,0 |
link ../chkdsk.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/choice.svp |
---|
0,0 → 1,0 |
link ../choice.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/command.svp |
---|
0,0 → 1,0 |
link ../command.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/cpidos.svp |
---|
0,0 → 1,0 |
link ../cpidos.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/debug.svp |
---|
0,0 → 1,0 |
link ../debug.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/deltree.svp |
---|
0,0 → 1,0 |
link ../deltree.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/diskcopy.svp |
---|
0,0 → 1,0 |
link ../diskcopy.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/display.svp |
---|
0,0 → 1,0 |
link ../display.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/dosfsck.svp |
---|
0,0 → 1,0 |
link ../dosfsck.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/edit.svp |
---|
0,0 → 1,0 |
link ../edit.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/fc.svp |
---|
0,0 → 1,0 |
link ../fc.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/fdapm.svp |
---|
0,0 → 1,0 |
link ../fdapm.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/fdisk.svp |
---|
0,0 → 1,0 |
link ../fdisk.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/find.svp |
---|
0,0 → 1,0 |
link ../find.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/format.svp |
---|
0,0 → 1,0 |
link ../format-0.91v.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/help.svp |
---|
0,0 → 1,0 |
link ../help.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/himemx.svp |
---|
0,0 → 1,0 |
link ../himemx.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/kernel.svp |
---|
0,0 → 1,0 |
link ../kernel.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/keyb.svp |
---|
0,0 → 1,0 |
link ../keyb-2.01+1.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/label.svp |
---|
0,0 → 1,0 |
link ../label.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/localcfg.svp |
---|
0,0 → 1,0 |
link ../localcfg.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/mem.svp |
---|
0,0 → 1,0 |
link ../mem.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/mode.svp |
---|
0,0 → 1,0 |
link ../mode.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/more.svp |
---|
0,0 → 1,0 |
link ../more.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/move.svp |
---|
0,0 → 1,0 |
link ../move.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/pkg.svp |
---|
0,0 → 1,0 |
link ../pkg-20220216.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/pkgnet.svp |
---|
0,0 → 1,0 |
link ../pkgnet-20220216.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/shsucdx.svp |
---|
0,0 → 1,0 |
link ../shsucdx.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/sort.svp |
---|
0,0 → 1,0 |
link ../sort.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |
/packages/core/tree.svp |
---|
0,0 → 1,0 |
link ../tree.svp |
Property changes: |
Added: svn:special |
+* |
\ No newline at end of property |