typeset -i n=1; while [ -d ${PUBDIR}${NOW}.$n ]; do n=n+1; done
typeset -i n=1; while [ -d ${PUBDIR}${NOW}.$n ]; do n=n+1; done
NOW=${NOW}.$n
NOW=${NOW}.$n
fi
fi
NOW=${NOW}
export NOW
LOG=${PUBDIR}${NOW}/livecd-${NOW}-${ARCH}.out
LOG=${PUBDIR}${NOW}/livecd-${NOW}-${ARCH}.out
rm -f ${PUBDIR}latest
rm -f ${PUBDIR}latest
@ -140,7 +138,7 @@ for STE in $SUITES; do
if $LIVE_BUILD; then
if $LIVE_BUILD; then
$LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && rm -rf auto && mkdir -p auto && for f in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/\$f auto/; done" >> ${LOG} 2>&1 || true
$LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && rm -rf auto && mkdir -p auto && for f in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/\$f auto/; done" >> ${LOG} 2>&1 || true