Complain and exit the script if the 'make install' phase fails. Also,

there is no need to install any debug files.
This commit is contained in:
Ian Lepore 2019-04-24 23:51:12 +00:00
parent c1bba4445c
commit f576caac25
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346652

View File

@ -783,7 +783,11 @@ EOF
# XXX
cp /boot/device.hints ${DESTDIR}/boot/device.hints
# Assume we're already built
make install DESTDIR=${DESTDIR} MK_MAN=no MK_INSTALL_AS_USER=yes
make install DESTDIR=${DESTDIR} MK_MAN=no MK_INSTALL_AS_USER=yes WITHOUT_DEBUG_FILES=yes
if [ $? -ne 0 ]; then
echo "make install failed"
exit 1
fi
# Copy init, /bin/sh, minimal libraries and testing /etc/rc
mkdir -p ${DESTDIR}/sbin ${DESTDIR}/bin \
${DESTDIR}/lib ${DESTDIR}/libexec \