comparison autogen.sh @ 23406:3c1f1bed5be2

merge of '57be04f07f9fdc005b620053ae4f09dd1e27ebb3' and '582755b8228024381c2a9e110de35f0aaedd5dc1'
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 02 Jul 2008 00:06:25 +0000
parents 67148f43fd2f
children a41e0d8ddae4 7b8f5dd30a82
comparison
equal deleted inserted replaced
22892:c9bc2d0215ed 23406:3c1f1bed5be2
77 77
78 run_or_die () { # beotch 78 run_or_die () { # beotch
79 CMD=$1 79 CMD=$1
80 shift 80 shift
81 81
82 OUTPUT=`mktemp autogen-XXXXXX`
83
82 printf "%s" "running ${CMD} ${@}... " 84 printf "%s" "running ${CMD} ${@}... "
83 OUTPUT=`${CMD} ${@} 2>&1` 85 ${CMD} ${@} >${OUTPUT} 2>&1
86
84 if [ $? != 0 ] ; then 87 if [ $? != 0 ] ; then
85 echo "failed." 88 echo "failed."
86 echo ${OUTPUT} 89 cat ${OUTPUT}
90 rm -f ${OUTPUT}
87 exit 1 91 exit 1
88 else 92 else
89 echo "done." 93 echo "done."
90 if [ x"${OUTPUT}" != x"" ] ; then 94 cat ${OUTPUT}
91 echo ${OUTPUT} 95
92 fi 96 rm -f ${OUTPUT}
93 fi 97 fi
94 } 98 }
95 99
96 ############################################################################### 100 ###############################################################################
97 # We really start here, yes, very sneaky! 101 # We really start here, yes, very sneaky!