2008-09-10 22:16:18 +00:00
|
|
|
#!/bin/bash -e
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2008-05-20 09:27:01 +00:00
|
|
|
# Script to build images for one or more architectures and/or source
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2004-06-29 22:13:17 +00:00
|
|
|
if [ -z "$CF" ] ; then
|
2009-08-07 14:06:09 +00:00
|
|
|
CF=./CONF.sh
|
2004-06-29 22:13:17 +00:00
|
|
|
fi
|
|
|
|
. $CF
|
2000-06-11 13:12:56 +00:00
|
|
|
|
2006-12-08 10:40:16 -01:00
|
|
|
echo "Using CONF from $CF"
|
|
|
|
|
2004-08-20 09:19:49 +00:00
|
|
|
if [ -z "$COMPLETE" ] ; then
|
|
|
|
export COMPLETE=1
|
|
|
|
fi
|
|
|
|
|
2008-05-20 09:27:01 +00:00
|
|
|
if [ $# -gt 1 ] ; then
|
|
|
|
echo "ERROR: too many arguments." >&2
|
|
|
|
exit 1
|
|
|
|
elif [ -n "$1" ] ; then
|
|
|
|
export ARCHES="$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
|
|
|
fi
|
|
|
|
|
|
|
|
PATH=$BASEDIR/tools:$PATH
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
if [ "$TASK"x = ""x ] ; then
|
|
|
|
case "$INSTALLER_CD"x in
|
|
|
|
"1"x)
|
2008-11-13 22:19:30 -01:00
|
|
|
TASK=debian-installer
|
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
|
|
|
unset COMPLETE
|
|
|
|
;;
|
2010-05-27 13:33:26 +00:00
|
|
|
"2"x|"C"x)
|
2008-11-13 22:19:30 -01:00
|
|
|
TASK=debian-installer+kernel
|
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
|
|
|
unset COMPLETE
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPLETE=1
|
|
|
|
;;
|
|
|
|
esac
|
2002-07-11 22:01:44 +00:00
|
|
|
fi
|
2000-06-11 13:12:56 +00: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
|
|
|
export TASK COMPLETE
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
make distclean
|
|
|
|
make ${CODENAME}_status
|
2006-12-22 23:48:33 -01:00
|
|
|
echo " ... checking your mirror"
|
|
|
|
RET=""
|
|
|
|
make mirrorcheck || RET=$?
|
|
|
|
if [ "$RET" ]; then
|
2006-10-07 00:11:28 +00:00
|
|
|
echo "ERROR: Your mirror has a problem, please correct it." >&2
|
|
|
|
exit 1
|
2000-06-11 13:12:56 +00:00
|
|
|
fi
|
2006-10-01 19:39:11 +00: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 [ -z "$IMAGETARGET" ] ; then
|
|
|
|
IMAGETARGET="official_images"
|
2004-06-29 22:15:58 +00:00
|
|
|
fi
|
2006-12-04 10:41:28 -01:00
|
|
|
echo " ... building the images; using target(s) \"$IMAGETARGET\""
|
2008-09-10 22:16:18 +00:00
|
|
|
|
2008-10-14 08:21:57 +00:00
|
|
|
if [ "$MAXISOS"x = ""x ] ; then
|
|
|
|
export MAXISOS="ALL"
|
|
|
|
fi
|
|
|
|
if [ "$MAXJIGDOS"x = ""x ] ; then
|
|
|
|
export MAXJIGDOS="ALL"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$MAXISOS" = "all" ] || [ "$MAXISOS" = "ALL" ] ; then
|
2008-09-10 22:16:18 +00:00
|
|
|
NUMISOS="all available"
|
2008-10-14 08:21:57 +00:00
|
|
|
elif [ "$MAXISOS" -eq 0 ] ; then
|
|
|
|
NUMISOS="no"
|
|
|
|
else
|
|
|
|
NUMISOS="up to $MAXISOS"
|
2008-09-10 22:16:18 +00:00
|
|
|
fi
|
2008-10-14 08:21:57 +00:00
|
|
|
if [ "$MAXJIGDOS" = "all" ] || [ "$MAXJIGDOS" = "ALL" ] ; then
|
2008-09-10 22:16:18 +00:00
|
|
|
NUMJIGDOS="all available"
|
2008-10-14 08:21:57 +00:00
|
|
|
elif [ "$MAXJIGDOS" -eq 0 ] ; then
|
|
|
|
NUMJIGDOS="no"
|
|
|
|
else
|
|
|
|
NUMJIGDOS="up to $MAXJIGDOS"
|
2008-09-10 22:16:18 +00:00
|
|
|
fi
|
2008-10-14 08:21:57 +00:00
|
|
|
echo "Building $NUMJIGDOS jigdos and $NUMISOS isos for $ARCHES $DISKTYPE"
|
2008-09-10 22:16:18 +00:00
|
|
|
|
2004-10-06 20:38:25 +00:00
|
|
|
make $IMAGETARGET
|
2000-06-11 13:12:56 +00:00
|
|
|
|
2008-09-20 19:36:42 +00:00
|
|
|
if [ "$IMAGESUMS"x = 1x ]; then
|
|
|
|
make imagesums
|
|
|
|
fi
|