Skip to content

Commit 04eca16

Browse files
committed
install.sh: Output info upon build failure
1 parent 62e8b47 commit 04eca16

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,16 @@ chmod u+x $RUN_FPM_SH
649649
# for backwards-compatibility of instructions/scripting:
650650
( cd build && ln -f -s ../$RUN_FPM_SH run-fpm.sh )
651651

652-
./$RUN_FPM_SH build $VERBOSE
652+
./$RUN_FPM_SH build $VERBOSE || \
653+
( set +x
654+
echo "Defect reporting information:"
655+
./$RUN_FPM_SH info
656+
echo
657+
echo Oh no, the Caffeine build appears to have failed!
658+
echo Please paste the ENTIRE output above into a new issue here:
659+
echo " https://github.com/berkeleylab/caffeine/issues"
660+
exit 1
661+
)
653662

654663
LIBCAFFEINE_DST=libcaffeine-$GASNET_CONDUIT-$GASNET_THREADMODE.a
655664
LIBCAFFEINE_SRC=$(./$RUN_FPM_SH install --list 2>/dev/null | grep libcaffeine | cut -d' ' -f2)

0 commit comments

Comments
 (0)