1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Script to build everything possible : sources and binaries for all archs
|
|
|
|
|
2006-12-22 23:45:29 -01:00
|
|
|
if [ -z "$CF" ] ; then
|
2009-08-07 14:06:09 +00:00
|
|
|
CF=./CONF.sh
|
2006-12-22 23:45:29 -01:00
|
|
|
fi
|
|
|
|
. $CF
|
|
|
|
|
|
|
|
echo "Using CONF from $CF"
|
|
|
|
|
|
|
|
if [ -z "$COMPLETE" ] ; then
|
|
|
|
export COMPLETE=1
|
|
|
|
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
|
2006-12-22 23:45:29 -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
|
2006-12-22 23:45:29 -01:00
|
|
|
unset COMPLETE
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPLETE=1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
export TASK COMPLETE
|
|
|
|
|
2000-06-14 04:54:52 +00:00
|
|
|
TMP_OUT=$OUT
|
|
|
|
|
2006-12-22 23:45:29 -01:00
|
|
|
if [ -z "$IMAGETARGET" ] ; then
|
|
|
|
IMAGETARGET="official_images"
|
|
|
|
fi
|
|
|
|
|
2010-08-20 15:04:23 +00:00
|
|
|
for ARCHES in i386 amd64 alpha arm hppa ia64 m68k mips mipsel powerpc s390 sparc kfreebsd-amd64 kfreebsd-i386 source
|
1999-11-11 16:10:37 -01:00
|
|
|
do
|
2006-12-22 23:45:29 -01:00
|
|
|
export ARCHES
|
|
|
|
echo "Now we're going to build CD for $ARCHES !"
|
1999-11-11 16:10:37 -01:00
|
|
|
echo " ... cleaning"
|
2006-12-22 23:45:29 -01:00
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
make distclean
|
|
|
|
make ${CODENAME}_status
|
|
|
|
echo " ... checking your mirror"
|
2006-12-22 23:45:29 -01:00
|
|
|
RET=""
|
|
|
|
make mirrorcheck || RET=$?
|
|
|
|
if [ "$RET" ]; then
|
1999-11-11 16:10:37 -01:00
|
|
|
echo "ERROR: Your mirror has a problem, please correct it." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2000-06-14 04:54:52 +00:00
|
|
|
|
2006-12-22 23:45:29 -01:00
|
|
|
OUT="$TMP_OUT/$ARCHES"
|
|
|
|
export OUT
|
|
|
|
mkdir -p $OUT
|
|
|
|
echo " ... building the images; using target(s) \"$IMAGETARGET\""
|
|
|
|
make $IMAGETARGET
|
|
|
|
|
2008-09-20 19:36:42 +00:00
|
|
|
if [ "$IMAGESUMS"x = 1x ]; then
|
|
|
|
make imagesums
|
|
|
|
fi
|
2006-12-22 23:45:29 -01:00
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
echo "--------------- `date` ---------------"
|
|
|
|
done
|