comparison autogen.sh @ 23113:8c3444f04709

propagate from branch 'im.pidgin.pidgin' (head d7144f5dbbde09137aff1ceadfd419e25303bf7d) to branch 'im.pidgin.pidgin.next.minor' (head b6f1c6f279a87ac4b59426eea116c349eb31fe8c)
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 07 May 2008 12:14:28 +0000
parents 78ee2ec009e8
children 5513f1f5f4bc 1dd0e007514d
comparison
equal deleted inserted replaced
23112:bb41bdce8981 23113:8c3444f04709
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-XXXX`
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 if [ `stat --printf="%s" ${OUTPUT}` -ge 0 ] ; then
91 echo ${OUTPUT} 95 cat ${OUTPUT}
92 fi 96 fi
97
98 rm -f ${OUTPUT}
93 fi 99 fi
94 } 100 }
95 101
96 ############################################################################### 102 ###############################################################################
97 # We really start here, yes, very sneaky! 103 # We really start here, yes, very sneaky!