3 # Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
4 # Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
5 # Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
7 # This file is part of WeeChat, the extensible chat client.
9 # WeeChat is free software; you can redistribute it and/or modify
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.
14 # WeeChat is distributed in the hope that it will be useful,
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.
19 # You should have received a copy of the GNU General Public License
20 # along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
27 DIR
=$(cd "$(dirname "$0")" || exit 1; pwd)
30 AUTOGEN_LOG=autogen.log
36 echo "---8<-----------------------------------"
38 echo "----------------------------------->8---"
44 printf "Running
\"%s
\"...
" "$@
"
45 if eval "$@
" >$AUTOGEN_LOG 2>&1 ; then
53 # remove autotools stuff
54 run "rm -f config.h.
in"
55 run "rm -f aclocal.
m4 configure config.log config.status
"
56 run "rm -rf autom4te
*.cache
"
58 # remove libtool stuff
61 # remove gettext stuff
65 # execute autoreconf cmds