Skip to content

Commit cdccb99

Browse files
committed
install.sh: Output info upon build failure
1 parent 2c86951 commit cdccb99

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
@@ -656,7 +656,16 @@ chmod u+x $RUN_FPM_SH
656656
# for backwards-compatibility of instructions/scripting:
657657
( cd build && ln -f -s ../$RUN_FPM_SH run-fpm.sh )
658658

659-
./$RUN_FPM_SH build $VERBOSE
659+
./$RUN_FPM_SH build $VERBOSE || \
660+
( set +x
661+
echo "Defect reporting information:"
662+
./$RUN_FPM_SH info
663+
echo
664+
echo Oh no, the Caffeine build appears to have failed!
665+
echo Please paste the ENTIRE output above into a new issue here:
666+
echo " https://github.com/berkeleylab/caffeine/issues"
667+
exit 1
668+
)
660669

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

0 commit comments

Comments
 (0)