]>
Commit | Line | Data |
---|---|---|
d2d14ffb | 1 | #!/bin/sh |
f1a39ce7 | 2 | # |
ed4837b2 | 3 | # Copyright (C) 2003-2018 Sébastien Helleu <flashcode@flashtux.org> |
6562d676 SH |
4 | # Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net> |
5 | # Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org> | |
f1a39ce7 | 6 | # |
6562d676 SH |
7 | # This file is part of WeeChat, the extensible chat client. |
8 | # | |
9 | # WeeChat is free software; you can redistribute it and/or modify | |
f1a39ce7 SH |
10 | # it under the terms of the GNU General Public License as published by |
11 | # the Free Software Foundation; either version 3 of the License, or | |
12 | # (at your option) any later version. | |
13 | # | |
6562d676 | 14 | # WeeChat is distributed in the hope that it will be useful, |
f1a39ce7 SH |
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | # GNU General Public License for more details. | |
18 | # | |
19 | # You should have received a copy of the GNU General Public License | |
6562d676 | 20 | # along with WeeChat. If not, see <http://www.gnu.org/licenses/>. |
f1a39ce7 | 21 | # |
dc836881 | 22 | |
9d96e3ad EB |
23 | ### |
24 | ### common stuff | |
25 | ### | |
9d96e3ad | 26 | |
e5d62431 SH |
27 | DIR=$(cd $(dirname "$0"); pwd) |
28 | cd $DIR | |
29 | ||
9d96e3ad EB |
30 | AUTOGEN_LOG=autogen.log |
31 | ||
32 | err () | |
33 | { | |
34 | echo "-------" | |
35 | echo "Error :" | |
36 | echo "---8<-----------------------------------" | |
37 | cat $AUTOGEN_LOG | |
38 | echo "----------------------------------->8---" | |
39 | exit 1 | |
40 | } | |
41 | ||
42 | run () | |
43 | { | |
3c530122 | 44 | echo -n "Running \"$@\"..." |
9d96e3ad EB |
45 | eval $@ >$AUTOGEN_LOG 2>&1 |
46 | if [ $? = 0 ] ; then | |
3c530122 | 47 | echo " OK" |
9d96e3ad | 48 | else |
3c530122 | 49 | echo " FAILED" |
eb56a98f | 50 | err |
9d96e3ad EB |
51 | fi |
52 | } | |
53 | ||
e13593dc | 54 | # remove autotools stuff |
9d96e3ad EB |
55 | run "rm -f config.h.in" |
56 | run "rm -f aclocal.m4 configure config.log config.status" | |
57 | run "rm -rf autom4te*.cache" | |
e13593dc | 58 | |
9d96e3ad EB |
59 | # remove libtool stuff |
60 | run "rm -f libtool" | |
e13593dc | 61 | |
9d96e3ad EB |
62 | # remove gettext stuff |
63 | run "rm -f ABOUT-NLS" | |
64 | run "rm -rf intl" | |
65 | ||
e13593dc | 66 | # execute autoreconf cmds |
ea4aad0b | 67 | run "autoreconf -vi" |
9d96e3ad EB |
68 | |
69 | # ending | |
70 | rm -f $AUTOGEN_LOG |