xbps-src-doinst-helper: if 'make install' fails print the log file and inform the user.

This commit is contained in:
Juan RP 2010-12-11 00:48:32 +01:00
parent 43ecc9f661
commit 4b71f4195b

View file

@ -200,8 +200,12 @@ make_install()
# #
# Install package via make. # Install package via make.
# #
${make_cmd} ${make_install_target} ${make_install_args} \ ${make_cmd} ${make_install_target} ${make_install_args}
|| msg_error "Package '$pkgname ($lver)': make install failed!" if [ $? -ne 0 -a -f ${wrksrc}/.xbps_make_install.log ]; then
msg_red "Package '$pkgname ($lver)': make install failed! full log below:"
cat ${wrksrc}/.xbps_make_install.log
exit 1
fi
} }
[ -z "$PKG_TMPLNAME" ] && exit 2 [ -z "$PKG_TMPLNAME" ] && exit 2