Mercurial > pidgin.yaz
comparison autogen.sh @ 29613:e3206d6da6c7
propagate from branch 'im.pidgin.pidgin' (head bc551a0f3f61b07c37e8677925b1aeae91e849be)
to branch 'im.pidgin.pidgin.next.minor' (head 6d87b28fb7d202e9e5cf6700c99d9f140fdcd245)
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 31 Oct 2009 17:52:54 +0000 |
parents | cca8bf9b1a48 |
children | 3e5a37c743df |
comparison
equal
deleted
inserted
replaced
29612:a78a44f0cdcd | 29613:e3206d6da6c7 |
---|---|
81 CMD=$1 | 81 CMD=$1 |
82 shift | 82 shift |
83 | 83 |
84 OUTPUT=`mktemp autogen-XXXXXX` | 84 OUTPUT=`mktemp autogen-XXXXXX` |
85 | 85 |
86 printf "%s" "running ${CMD} ${@}... " | 86 printf "running %s %s... " ${CMD} "$*" |
87 ${CMD} ${@} >${OUTPUT} 2>&1 | 87 ${CMD} ${@} >${OUTPUT} 2>&1 |
88 | 88 |
89 if [ $? != 0 ] ; then | 89 if [ $? != 0 ] ; then |
90 echo "failed." | 90 echo "failed." |
91 cat ${OUTPUT} | 91 cat ${OUTPUT} |
97 | 97 |
98 rm -f ${OUTPUT} | 98 rm -f ${OUTPUT} |
99 fi | 99 fi |
100 } | 100 } |
101 | 101 |
102 cleanup () { | |
103 rm -f autogen-?????? | |
104 echo | |
105 exit 2 | |
106 } | |
107 | |
102 ############################################################################### | 108 ############################################################################### |
103 # We really start here, yes, very sneaky! | 109 # We really start here, yes, very sneaky! |
104 ############################################################################### | 110 ############################################################################### |
111 trap cleanup 2 | |
112 | |
105 FIGLET=`which figlet 2> /dev/null` | 113 FIGLET=`which figlet 2> /dev/null` |
106 if [ x"${FIGLET}" != x"" ] ; then | 114 if [ x"${FIGLET}" != x"" ] ; then |
107 ${FIGLET} -f small ${PACKAGE} | 115 ${FIGLET} -f small ${PACKAGE} |
108 echo "build system is being generated" | 116 echo "build system is being generated" |
109 else | 117 else |
141 run_or_die ${LIBTOOLIZE} ${LIBTOOLIZE_FLAGS:-"-c -f --automake"} | 149 run_or_die ${LIBTOOLIZE} ${LIBTOOLIZE_FLAGS:-"-c -f --automake"} |
142 run_or_die ${GLIB_GETTEXTIZE} ${GLIB_GETTEXTIZE_FLAGS:-"--force --copy"} | 150 run_or_die ${GLIB_GETTEXTIZE} ${GLIB_GETTEXTIZE_FLAGS:-"--force --copy"} |
143 run_or_die ${INTLTOOLIZE} ${INTLTOOLIZE_FLAGS:-"-c -f --automake"} | 151 run_or_die ${INTLTOOLIZE} ${INTLTOOLIZE_FLAGS:-"-c -f --automake"} |
144 # This call to sed is needed to work around an annoying bug in intltool 0.40.6 | 152 # This call to sed is needed to work around an annoying bug in intltool 0.40.6 |
145 # See http://developer.pidgin.im/ticket/9520 for details | 153 # See http://developer.pidgin.im/ticket/9520 for details |
146 run_or_die ${SED} "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in | 154 run_or_die ${SED} -i.bak -e "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" po/Makefile.in.in |
147 run_or_die ${ACLOCAL} ${ACLOCAL_FLAGS:-"-I m4macros"} | 155 run_or_die ${ACLOCAL} ${ACLOCAL_FLAGS:-"-I m4macros"} |
148 run_or_die ${AUTOHEADER} ${AUTOHEADER_FLAGS} | 156 run_or_die ${AUTOHEADER} ${AUTOHEADER_FLAGS} |
149 run_or_die ${AUTOMAKE} ${AUTOMAKE_FLAGS:-"-a -c --gnu"} | 157 run_or_die ${AUTOMAKE} ${AUTOMAKE_FLAGS:-"-a -c --gnu"} |
150 run_or_die ${AUTOCONF} ${AUTOCONF_FLAGS} | 158 run_or_die ${AUTOCONF} ${AUTOCONF_FLAGS} |
151 | 159 |