2005-12-08 21:55:19 -01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Debian-cd helper script for making ISO / jigdo images
|
|
|
|
#
|
|
|
|
# Split out from the top-level Makefile SAM 2005/12/08
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
DIR=$1
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
ARCHES="$2"
|
2005-12-08 21:55:19 -01:00
|
|
|
OUT=$3
|
|
|
|
DOJIGDO=$4
|
|
|
|
DEBVERSION=$5
|
|
|
|
MIRROR=$6
|
|
|
|
MKISOFS=$7
|
|
|
|
MKISOFS_OPTS=$8
|
|
|
|
JIGDO_OPTS=$9
|
2005-12-08 22:46:42 -01:00
|
|
|
shift
|
|
|
|
JIGDO_CLEANUP=$9
|
2005-12-08 21:55:19 -01:00
|
|
|
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
NUM_ARCHES=`echo $ARCHES | wc -w`
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
if [ "$CD"x = ""x ] ; then
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo "Generating the $ARCHES iso/jigdo images ..."
|
2005-12-08 21:55:19 -01:00
|
|
|
FILES=$DIR/*.volid
|
|
|
|
else
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo "Generating $ARCHES iso/jigdo image number $CD ..."
|
2005-12-08 21:55:19 -01:00
|
|
|
FILES=$DIR/$CD.volid
|
|
|
|
fi
|
|
|
|
|
2006-12-29 01:44:22 -01:00
|
|
|
NUM_CDS=`ls -1 $FILES | wc -l`
|
|
|
|
|
|
|
|
last_minute_update () {
|
|
|
|
echo " Last-minute updates:"
|
|
|
|
# Aaargh. Only now that we know how many CDs we're making can we
|
|
|
|
# fill in the TOTALNUM number in README.{html,txt} (and therefore also
|
|
|
|
# update the md5sum.txt entries for those files)
|
|
|
|
for file in README.html README.txt
|
|
|
|
do
|
|
|
|
echo " $file"
|
|
|
|
OLD_MD5=`md5sum ./$file`
|
|
|
|
sed -i "s?TOTALNUM?$NUM_CDS?" $file
|
|
|
|
NEW_MD5=`md5sum ./$file`
|
|
|
|
sed -i "s?$OLD_MD5?$NEW_MD5?" md5sum.txt
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
for file in $FILES
|
|
|
|
do
|
|
|
|
dir=${file%%.volid}
|
|
|
|
n=${dir##$DIR/}
|
|
|
|
num=$n
|
|
|
|
dir=$DIR/CD$n
|
|
|
|
|
2006-12-29 01:44:22 -01:00
|
|
|
cd $dir
|
|
|
|
# Anything last-minute that can only be done now?
|
|
|
|
last_minute_update
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
cd $dir/..
|
|
|
|
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
opts=`cat $DIR/$n.mkisofs_opts` || true
|
2006-11-27 03:16:52 -01:00
|
|
|
dirs=`cat $DIR/$n.mkisofs_dirs` || true
|
2005-12-08 21:55:19 -01:00
|
|
|
volid=`cat $DIR/$n.volid`
|
|
|
|
relname=`echo $DEBVERSION | sed -e 's/[. ]//g'`
|
2005-12-18 18:34:35 -01:00
|
|
|
DISKINFO=`cat $DIR/$n.diskinfo`
|
2005-12-08 21:55:19 -01:00
|
|
|
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
if [ $NUM_ARCHES = 1 ] ; then
|
|
|
|
OUTFILE="${CDNAME:-debian}-$relname-$ARCHES-$DISKTYPE-$n"
|
2005-12-08 21:55:19 -01:00
|
|
|
else
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
OUTFILE="${CDNAME:-debian}-$relname-MULTI-$DISKTYPE-$n"
|
2005-12-08 21:55:19 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Clean up any old files
|
2006-11-27 02:19:31 -01:00
|
|
|
rm -f $OUT/$OUTFILE.iso $OUT/$OUTFILE.jigdo $OUT/$OUTFILE.template
|
2005-12-08 21:55:19 -01:00
|
|
|
|
2005-12-13 01:04:33 -01:00
|
|
|
date
|
|
|
|
|
2005-12-08 21:55:19 -01:00
|
|
|
# Actually make the ISO/jigdo images. Long command lines
|
|
|
|
# here... :-(
|
|
|
|
case $DOJIGDO in
|
|
|
|
|
|
|
|
0) # No jigdo files, just straight ISO
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" -o $OUT/$OUTFILE.iso $opts $dirs CD$n
|
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" -o $OUT/$OUTFILE.iso $opts $dirs CD$n > CD$n/.disk/mkisofs
|
2006-11-27 02:19:31 -01:00
|
|
|
$MKISOFS $MKISOFS_OPTS -V "$volid" -o $OUT/$OUTFILE.iso $opts $dirs CD$n
|
2005-12-08 21:55:19 -01:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
1) # jigdo files _and_ ISO
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2006-11-27 02:19:31 -01:00
|
|
|
-o $OUT/$OUTFILE.iso \
|
2005-12-12 00:12:28 -01:00
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
2006-11-27 01:15:29 -01:00
|
|
|
$JIGDO_OPTS $opts $dirs CD$n
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2006-11-27 23:19:55 -01:00
|
|
|
-o $OUT/$OUTFILE.iso \
|
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
|
|
|
$JIGDO_OPTS $opts $dirs CD$n > CD$n/.disk/mkisofs
|
2005-12-08 21:55:19 -01:00
|
|
|
$MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2006-11-27 02:19:31 -01:00
|
|
|
-o $OUT/$OUTFILE.iso \
|
2005-12-12 00:12:28 -01:00
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
2005-12-08 21:55:19 -01:00
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
2006-11-27 01:15:29 -01:00
|
|
|
$JIGDO_OPTS $opts $dirs CD$n
|
2005-12-08 21:55:19 -01:00
|
|
|
;;
|
|
|
|
|
|
|
|
2) # jigdo only, no ISO
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2005-12-12 00:12:28 -01:00
|
|
|
-o /dev/null \
|
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
2006-11-27 01:15:29 -01:00
|
|
|
$JIGDO_OPTS $opts $dirs CD$n
|
Merge of changes from Steve's development branch to take us to
debian-cd version 3.0.0. Highlights:
* Support now added for multi-arch CDs/DVDs, including mixed
binary/source discs. Multi-arch discs should be bootable on those
multiple arches, modulo boot-sector clashes. Extra support added
in boot-i386 and boot-amd64 to make the 2 main arches happily
co-exist.
* Disc sizing is now much more intelligent - sizes are defined
depending on the disk type chosen at the start, and discs are now
filled exactly to those sizes while files are added rather than
the old up-front guessing method. Equally, the metadata on the
disc (Packages, Packages.gz, Sources, Sources.gz, md5sums.txt) is
generated as much as possible while this is happening to make the
sizing code incredibly accurate. Using this method of disc sizing
means that customising discs should be much easier/safer - either
add custom contents at the start and debian-cd will fill the
remainder of the disc, or afterwards roll back the packages on the
disc and add extras later.
* Source is now treated as (almost) just another arch, with most of
the special casing for source hidden internally. If asking for
source-only discs, they will simply be built using all the
available sources. If combined with other arches, the sources will
automatically be chosen to match the binary packages. Meeting GPL
requirements was never so easy!
* Removed lots of old cruft to clean up the codebase:
+ non-US support
+ woody support
+ lots of old support scripts that have been made redundant
+ significantly simpler Makefile, much easier to follow
+ old boot-$ARCH.calc files for estimating boot-file sizes are now
(obviously) obsolete and therefore gone
2006-12-07 22:09:01 -01:00
|
|
|
echo $MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2006-11-27 23:19:55 -01:00
|
|
|
-o /dev/null \
|
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
|
|
|
$JIGDO_OPTS $opts $dirs CD$n > CD$n/.disk/mkisofs
|
2005-12-08 21:55:19 -01:00
|
|
|
$MKISOFS $MKISOFS_OPTS -V "$volid" \
|
2005-12-08 22:46:42 -01:00
|
|
|
-o /dev/null \
|
2005-12-08 21:55:19 -01:00
|
|
|
-jigdo-jigdo $OUT/$OUTFILE.jigdo \
|
|
|
|
-jigdo-template $OUT/$OUTFILE.template \
|
|
|
|
-jigdo-map Debian=$MIRROR/ \
|
|
|
|
-jigdo-exclude boot$n \
|
|
|
|
-md5-list $DIR/md5-check \
|
2006-11-27 01:15:29 -01:00
|
|
|
$JIGDO_OPTS $opts $dirs CD$n
|
2005-12-08 21:55:19 -01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# If we've made jigdo files, tweak them with extra info now
|
|
|
|
if [ "$DOJIGDO" != "0" ] ; then
|
|
|
|
$JIGDO_CLEANUP $OUT/$OUTFILE.jigdo \
|
|
|
|
$OUTFILE.iso $DIR/CD$n \
|
|
|
|
"`echo "$JIGDOTEMPLATEURL" | sed -e 's|%ARCH%|$ARCH|g'`$OUTFILE.template" \
|
2005-12-18 18:34:35 -01:00
|
|
|
"$DISKINFO" \
|
2005-12-08 21:55:19 -01:00
|
|
|
$JIGDOFALLBACKURLS
|
|
|
|
fi
|
|
|
|
done
|