Subversion Repositories SvarDOS

Rev

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

Rev 284 Rev 300
Line 49... Line 49...
49
 
49
 
50
# abort if anything fails
50
# abort if anything fails
51
set -e
51
set -e
52
 
52
 
53
 
53
 
54
# list of packages to be part of CORE
54
# list of packages to be part of CORE (always installed)
55
COREPKGS="amb attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk format help himemx kernel keyb keyb_lay label mem mode more move pkg pkgnet shsucdx sort tree undelete xcopy udvd2"
55
COREPKGS="amb attrib chkdsk choice command cpidos ctmouse deltree devload diskcopy display dosfsck edit fc fdapm fdisk format help himemx kernel keyb keyb_lay label mem mode more move pkg pkgnet shsucdx sort tree"
56
 
56
 
-
 
57
# list of packages to be part of EXTRA (only sometimes installed, typically drivers)
-
 
58
EXTRAPKGS="pcntpk udvd2"
-
 
59
 
-
 
60
# all packages
-
 
61
ALLPKGS="$COREPKGS $EXTRAPKGS"
57
 
62
 
58
 
63
 
59
# function that builds the packages repository
64
# function that builds the packages repository
60
function dorepo {
65
function dorepo {
61
  # copy all zip files to the web repo
66
  # copy all zip files to the web repo
Line 81... Line 86...
81
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$4/disk1.img"
86
  mformat -C -t $1 -h $2 -s $3 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$4/disk1.img"
82
  mcopy -sQm -i "$4/disk1.img" "$FLOPROOT/"* ::/
87
  mcopy -sQm -i "$4/disk1.img" "$FLOPROOT/"* ::/
83
 
88
 
84
  # now populate the floppies
89
  # now populate the floppies
85
  curdisk=1
90
  curdisk=1
86
  for p in $COREPKGS ; do
91
  for p in $ALLPKGS ; do
87
    # if copy fails, then probably the floppy is full - try again after
92
    # if copy fails, then probably the floppy is full - try again after
88
    # creating an additional floppy image
93
    # creating an additional floppy image
89
    if ! mcopy -mi "$4/disk$curdisk.img" "$CDROOT/$p.zip" ::/ ; then
94
    if ! mcopy -mi "$4/disk$curdisk.img" "$CDROOT/$p.zip" ::/ ; then
90
      curdisk=$((curdisk+1))
95
      curdisk=$((curdisk+1))
91
      mformat -C -t $1 -h $2 -s $3 -v SVARDOS -i "$4/disk$curdisk.img"
96
      mformat -C -t $1 -h $2 -s $3 -v SVARDOS -i "$4/disk$curdisk.img"
Line 137... Line 142...
137
for pkg in $COREPKGS ; do
142
for pkg in $COREPKGS ; do
138
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
143
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
139
  echo "$pkg" >> "$FLOPROOT/install.lst"
144
  echo "$pkg" >> "$FLOPROOT/install.lst"
140
done
145
done
141
 
146
 
-
 
147
# add EXTRA packages to CDROOT (but not in the list of packages so instal won't install them by default)
-
 
148
for pkg in $EXTRAPKGS ; do
-
 
149
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
-
 
150
done
-
 
151
 
-
 
152
 
142
# prepare the content of the boot (install) floppy
153
# prepare the content of the boot (install) floppy
143
cp "install/install.com" "$FLOPROOT/"
154
cp "install/install.com" "$FLOPROOT/"
144
cp "install/nls/"install.?? "$FLOPROOT/"
155
cp "install/nls/"install.?? "$FLOPROOT/"
145
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
156
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
146
unzip -j packages/pkg.zip bin/pkg.exe -d "$FLOPROOT/"
157
unzip -j packages/pkg.zip bin/pkg.exe -d "$FLOPROOT/"