Make build_all.sh work again, adapting build.sh

This commit is contained in:
Steve McIntyre 2006-12-23 00:45:29 +00:00
parent 8232a68646
commit 08e4962506
2 changed files with 53 additions and 70 deletions

View File

@ -2,88 +2,69 @@
# Script to build everything possible : sources and binaries for all archs # Script to build everything possible : sources and binaries for all archs
if [ -z "$CF" ] ; then
CF=CONF.sh
fi
. $CF
echo "Using CONF from $CF"
if [ -z "$COMPLETE" ] ; then
export COMPLETE=1
fi
. CONF.sh . CONF.sh
PATH=$BASEDIR/tools:$PATH
export PATH
if [ "$TASK"x = ""x ] ; then
case "$INSTALLER_CD"x in
"1"x)
TASK=tasks/debian-installer-$CODENAME
unset COMPLETE
;;
"2"x)
TASK=tasks/debian-installer+kernel-$CODENAME
unset COMPLETE
;;
*)
COMPLETE=1
;;
esac
fi
export TASK COMPLETE
TMP_OUT=$OUT TMP_OUT=$OUT
for ARCH in i386 alpha arm hppa ia64 m68k mips mipsel powerpc s390 sparc #amd64 if [ -z "$IMAGETARGET" ] ; then
IMAGETARGET="official_images"
fi
for ARCHES in i386 amd64 alpha arm hppa ia64 m68k mips mipsel powerpc s390 sparc source
do do
export ARCH export ARCHES
echo "Now we're going to build CD for $ARCH !" echo "Now we're going to build CD for $ARCHES !"
echo " ... cleaning" echo " ... cleaning"
make distclean make distclean
make ${CODENAME}_status make ${CODENAME}_status
echo " ... checking your mirror" echo " ... checking your mirror"
if [ "$SKIPMIRRORCHECK" != "yes" ] ; then RET=""
make mirrorcheck-binary make mirrorcheck || RET=$?
if [ "$ARCH" = "i386" ]; then if [ "$RET" ]; then
make mirrorcheck-source
fi
else
echo "WARNING: skipping mirrorcheck"
fi
if [ $? -gt 0 ]; then
echo "ERROR: Your mirror has a problem, please correct it." >&2 echo "ERROR: Your mirror has a problem, please correct it." >&2
exit 1 exit 1
fi fi
echo " ... selecting packages to include"
if [ -e ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. ] ; then OUT="$TMP_OUT/$ARCHES"
disks=`du -sm ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. | \ export OUT
awk '{print $1}'` mkdir -p $OUT
else echo " ... building the images; using target(s) \"$IMAGETARGET\""
disks=0 make $IMAGETARGET
fi
if [ -f $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc ]; then
. $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc
fi
SIZE_ARGS=''
for CD in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
size=`eval echo '$'"BOOT_SIZE_${CD}"`
[ "$size" = "" ] && size=0
[ $CD = "1" ] && size=$(($size + $disks))
mult=`eval echo '$'"SIZE_MULT_${CD}"`
[ "$mult" = "" ] && mult=100
FULL_SIZE=`echo "($DEFBINSIZE - $size) * 1024 * 1024" | bc`
echo "INFO: Reserving $size MB on CD $CD for boot files. SIZELIMIT=$FULL_SIZE."
if [ $mult != 100 ]; then
echo " INFO: Reserving "$((100-$mult))"% of the CD for extra metadata"
FULL_SIZE=`echo "$FULL_SIZE * $mult" / 100 | bc`
echo " INFO: SIZELIMIT now $FULL_SIZE."
fi
SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$FULL_SIZE"
done
FULL_SIZE=`echo "($DEFSRCSIZE - $size) * 1024 * 1024" | bc`
make list COMPLETE=1 $SIZE_ARGS SRCSIZELIMIT=$FULL_SIZE
echo " ... building the images"
if [ "$ARCH" = "i386" ]; then
export OUT="$TMP_OUT/$ARCH"; mkdir -p $OUT
make bin-official_images
echo Generating MD5Sums of the images
make imagesums make imagesums
export OUT="$TMP_OUT/src"; mkdir -p $OUT
make src-official_images
echo Generating MD5Sums of the images
make imagesums
else
export OUT=$TMP_OUT/$ARCH; mkdir -p $OUT
make bin-official_images
if [ $? -gt 0 ]; then
echo "ERROR WHILE BUILDING OFFICIAL IMAGES !!" >&2
if [ "$ATTEMPT_FALLBACK" = "yes" ]; then
echo "I'll try to build a simple (non-bootable) CD" >&2
make clean
make installtools
make bin-images
else
exit 1
fi
fi
echo Generating MD5Sums of the images
make imagesums
echo Generating list files for images
make pi-makelist
fi
echo "--------------- `date` ---------------" echo "--------------- `date` ---------------"
done done

2
debian/changelog vendored
View File

@ -182,6 +182,8 @@ debian-cd (3.0.0) UNRELEASED; urgency=low
+ old defs and rules in the Makefile + old defs and rules in the Makefile
+ tools/add_secured + tools/add_secured
+ don't depend on jigdo-file any more + don't depend on jigdo-file any more
* Other cleanups:
+ Make build_all.sh work again, adapting build.sh
-- Frans Pop <fjp@debian.org> Mon, 18 Dec 2006 16:20:22 +0100 -- Frans Pop <fjp@debian.org> Mon, 18 Dec 2006 16:20:22 +0100