debian-cd-clone/build_all.sh

71 lines
1.2 KiB
Bash
Raw Permalink Normal View History

1999-11-11 16:10:37 -01:00
#!/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
PATH=$BASEDIR/tools:$PATH
export PATH
if [ "$TASK"x = ""x ] ; then
case "$INSTALLER_CD"x in
"1"x)
TASK=debian-installer
unset COMPLETE
;;
"2"x|"C"x)
TASK=debian-installer+kernel
unset COMPLETE
;;
*)
COMPLETE=1
;;
esac
fi
export TASK COMPLETE
2000-06-14 04:54:52 +00:00
TMP_OUT=$OUT
if [ -z "$IMAGETARGET" ] ; then
IMAGETARGET="official_images"
fi
for ARCHES in i386 amd64 armel armhf arm64 mipsel ppc64el s390x source
1999-11-11 16:10:37 -01:00
do
export ARCHES
echo "Now we're going to build CD for $ARCHES !"
1999-11-11 16:10:37 -01:00
echo " ... cleaning"
1999-11-11 16:10:37 -01:00
make distclean
make ${CODENAME}_status
echo " ... checking your mirror"
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
OUT="$TMP_OUT/$ARCHES"
export OUT
mkdir -p $OUT
echo " ... building the images; using target(s) \"$IMAGETARGET\""
make $IMAGETARGET
if [ "$IMAGESUMS"x = 1x ]; then
make imagesums
fi
1999-11-11 16:10:37 -01:00
echo "--------------- `date` ---------------"
done