71 lines
1.2 KiB
Bash
71 lines
1.2 KiB
Bash
|
#!/bin/sh
|
||
|
|
||
|
# 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
|
||
|
|
||
|
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
|
||
|
|
||
|
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
|
||
|
export ARCHES
|
||
|
echo "Now we're going to build CD for $ARCHES !"
|
||
|
echo " ... cleaning"
|
||
|
|
||
|
make distclean
|
||
|
make ${CODENAME}_status
|
||
|
echo " ... checking your mirror"
|
||
|
RET=""
|
||
|
make mirrorcheck || RET=$?
|
||
|
if [ "$RET" ]; then
|
||
|
echo "ERROR: Your mirror has a problem, please correct it." >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
OUT="$TMP_OUT/$ARCHES"
|
||
|
export OUT
|
||
|
mkdir -p $OUT
|
||
|
echo " ... building the images; using target(s) \"$IMAGETARGET\""
|
||
|
make $IMAGETARGET
|
||
|
|
||
|
make imagesums
|
||
|
|
||
|
echo "--------------- `date` ---------------"
|
||
|
done
|