Subversion Repositories SvarDOS

Rev

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

Rev 1937 Rev 2167
Line 53... Line 53...
53
if [ "x$GENISOIMAGE" == "x" ] ; then
53
if [ "x$GENISOIMAGE" == "x" ] ; then
54
  echo "ERROR: neither genisoimage nor mkisofs was found on this system"
54
  echo "ERROR: neither genisoimage nor mkisofs was found on this system"
55
  exit 1
55
  exit 1
56
fi
56
fi
57
 
57
 
58
SED='sed'
-
 
59
if [ `uname` == "Darwin" ] ; then
-
 
60
  SED='gsed'
-
 
61
fi
-
 
62
 
-
 
63
# abort if anything fails
58
# abort if anything fails
64
set -e
59
set -e
65
 
60
 
66
 
61
 
67
# list of packages to be part of CORE (always installed), sort them from
62
# list of packages to be part of CORE (always installed), sort them from
Line 84... Line 79...
84
function prep_flop {
79
function prep_flop {
85
  WORKDIR="$5/$6"
80
  WORKDIR="$5/$6"
86
  LIST=$7
81
  LIST=$7
87
  mkdir "$WORKDIR"
82
  mkdir "$WORKDIR"
88
  mformat -C -t $1 -h $2 -s $3 -v $CURDATE -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
83
  mformat -C -t $1 -h $2 -s $3 -v $CURDATE -B "$CUSTFILES/floppy.mbr" -i "$WORKDIR/disk1.img"
-
 
84
 
-
 
85
  # copy basic files (installer, startup files...)
89
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
86
  mcopy -sQm -i "$WORKDIR/disk1.img" "$FLOPROOT/"* ::/
90
 
87
 
-
 
88
  # generate the INSTALL.LST file
-
 
89
  for pkg in $7 ; do
-
 
90
    echo "$pkg" >> "$WORKDIR/install.lst"
-
 
91
  done
-
 
92
  mcopy -i "$WORKDIR/disk1.img" "$WORKDIR/install.lst" ::/
-
 
93
  rm "$WORKDIR/install.lst"
-
 
94
 
91
  # now populate the floppies
95
  # now populate the floppies with *.svp packages
92
  curdisk=1
96
  curdisk=1
93
 
97
 
94
  while [ ! -z "$LIST" ] ; do
98
  while [ ! -z "$LIST" ] ; do
95
 
99
 
96
    unset PENDING
100
    unset PENDING
Line 149... Line 153...
149
mkdir "$FLOPROOT"
153
mkdir "$FLOPROOT"
150
 
154
 
151
# add CORE packages to CDROOT + create the list of packages on floppy
155
# add CORE packages to CDROOT + create the list of packages on floppy
152
for pkg in $COREPKGS ; do
156
for pkg in $COREPKGS ; do
153
  cp "$REPOROOTCORE/$pkg.svp" "$CDROOT/"
157
  cp "$REPOROOTCORE/$pkg.svp" "$CDROOT/"
154
  echo "$pkg" >> "$FLOPROOT/install.lst"
-
 
155
done
158
done
156
 
159
 
157
# add some extra packages to CDROOT but not in the list of packages to install
160
# add some extra packages to CDROOT but not in the list of packages to install
158
cp "$REPOROOT/pcntpk.svp" "$CDROOT/"
161
cp "$REPOROOT/pcntpk.svp" "$CDROOT/"
159
cp "$REPOROOT/videcdd-2.14.svp" "$CDROOT/videcdd.svp"
162
cp "$REPOROOT/videcdd-2.14.svp" "$CDROOT/videcdd.svp"
Line 232... Line 235...
232
 
235
 
233
# build the boot (CD) floppy image
236
# build the boot (CD) floppy image
234
export MTOOLS_NO_VFAT=1
237
export MTOOLS_NO_VFAT=1
235
 
238
 
236
# prepare images for floppies in different sizes (args are C H S SIZE)
239
# prepare images for floppies in different sizes (args are C H S SIZE)
237
echo "videcdd" >> "$FLOPROOT/install.lst"
-
 
238
prep_flop 80 2 36 2880 "$PUBDIR" "2.88M" "$COREPKGS pcntpk videcdd" "$CDROOT/boot.img"
240
prep_flop 80 2 36 2880 "$PUBDIR" "2.88M" "$COREPKGS pcntpk videcdd" "$CDROOT/boot.img"
239
# no videcdd for non-2.88M images
-
 
240
$SED -i '/^videcdd$/d' "$FLOPROOT/install.lst"
-
 
241
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M" "$COREPKGS pcntpk"
241
prep_flop 80 2 18 1440 "$PUBDIR" "1.44M" "$COREPKGS pcntpk"
242
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M" "$COREPKGS"
242
prep_flop 80 2 15 1200 "$PUBDIR" "1.2M" "$COREPKGS"
243
prep_flop 80 2  9  720 "$PUBDIR" "720K" "$COREPKGS"
243
prep_flop 80 2  9  720 "$PUBDIR" "720K" "$COREPKGS"
244
prep_flop 40 2  9  360 "$PUBDIR" "360K" "$COREPKGS"
244
prep_flop 40 2  9  360 "$PUBDIR" "360K" "$COREPKGS"
245
 
245