1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Script to build everything possible : sources and binaries for all archs
|
|
|
|
|
|
|
|
. CONF.sh
|
|
|
|
|
2000-05-21 15:20:52 +00:00
|
|
|
for ARCH in i386 m68k alpha sparc powerpc
|
1999-11-11 16:10:37 -01:00
|
|
|
do
|
|
|
|
export ARCH
|
|
|
|
echo "Now we're going to build CD for $ARCH !"
|
|
|
|
echo " ... cleaning"
|
|
|
|
make distclean
|
|
|
|
make ${CODENAME}_status
|
|
|
|
echo " ... checking your mirror"
|
|
|
|
make mirrorcheck
|
|
|
|
if [ $? -gt 0 ]; then
|
|
|
|
echo "ERROR: Your mirror has a problem, please correct it." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo " ... selecting packages to include"
|
2000-05-22 13:09:59 +00:00
|
|
|
disks=`du -sm ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. | \
|
|
|
|
awk '{print $1}'`
|
|
|
|
make list COMPLETE=1 SIZELIMIT1=$(((630 - ${disks}) * 1024 *1024)) \
|
|
|
|
SRCSIZELIMIT=$((635 * 1024 * 1024))
|
1999-11-11 16:10:37 -01:00
|
|
|
echo " ... building the images"
|
|
|
|
if [ "$ARCH" = "i386" ]; then
|
|
|
|
make official_images
|
|
|
|
else
|
|
|
|
make bin-official_images
|
|
|
|
if [ $? -gt 0 ]; then
|
|
|
|
echo "ERROR WHILE BUILDING OFFICIAL IMAGES !!" >&2
|
|
|
|
echo "I'll try to build a simple (non-bootable) CD" >&2
|
|
|
|
make clean
|
|
|
|
make installtools
|
|
|
|
make bin-images
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "--------------- `date` ---------------"
|
|
|
|
done
|
|
|
|
|
|
|
|
make imagesums
|