Mercurial > pidgin.yaz
comparison autogen.sh @ 31636:35224e759210
propagate from branch 'im.pidgin.pidgin' (head d5a2e2287440ac7134c201e66921754bd4187ba9)
to branch 'im.pidgin.pidgin.openq' (head 98848d977bb3de3cf530c951d157fe8139482675)
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 12 Jan 2010 14:22:02 +0000 |
parents | cca8bf9b1a48 |
children | 3e5a37c743df |
comparison
equal
deleted
inserted
replaced
31635:befc616a0bf5 | 31636:35224e759210 |
---|---|
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 |