Annotation of embedaddon/libiconv/autogen.sh, revision 1.1.1.2

1.1       misho       1: #!/bin/sh
                      2: # Convenience script for regenerating all autogeneratable files that are
                      3: # omitted from the version control repository. In particular, this script
                      4: # also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files
                      5: # with new versions of autoconf or automake.
                      6: #
1.1.1.2 ! misho       7: # This script requires autoconf-2.63..2.68 and automake-1.11 in the PATH.
1.1       misho       8: # It also requires either
                      9: #   - the GNULIB_TOOL environment variable pointing to the gnulib-tool script
                     10: #     in a gnulib checkout, or
                     11: #   - the git program in the PATH and an internet connection.
                     12: # It also requires
                     13: #   - the gperf program.
                     14: 
1.1.1.2 ! misho      15: # Copyright (C) 2003-2010 Free Software Foundation, Inc.
1.1       misho      16: #
                     17: # This program is free software: you can redistribute it and/or modify
                     18: # it under the terms of the GNU General Public License as published by
                     19: # the Free Software Foundation; either version 3 of the License, or
                     20: # (at your option) any later version.
                     21: #
                     22: # This program is distributed in the hope that it will be useful,
                     23: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                     24: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     25: # GNU General Public License for more details.
                     26: #
                     27: # You should have received a copy of the GNU General Public License
                     28: # along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     29: 
                     30: # Usage: ./autogen.sh [--skip-gnulib]
                     31: #
                     32: # Usage from a CVS checkout:                 ./autogen.sh
                     33: # This uses an up-to-date gnulib checkout.
                     34: #
                     35: # Usage from a released tarball:             ./autogen.sh --skip-gnulib
                     36: # This does not use a gnulib checkout.
                     37: 
                     38: skip_gnulib=false
                     39: while :; do
                     40:   case "$1" in
                     41:     --skip-gnulib) skip_gnulib=true; shift;;
                     42:     *) break ;;
                     43:   esac
                     44: done
                     45: 
                     46: if test $skip_gnulib = false; then
                     47:   if test -z "$GNULIB_TOOL"; then
                     48:     # Check out gnulib in a subdirectory 'gnulib'.
                     49:     if test -d gnulib; then
                     50:       (cd gnulib && git pull)
                     51:     else
                     52:       git clone git://git.savannah.gnu.org/gnulib.git
                     53:     fi
                     54:     # Now it should contain a gnulib-tool.
                     55:     if test -f gnulib/gnulib-tool; then
                     56:       GNULIB_TOOL=`pwd`/gnulib/gnulib-tool
                     57:     else
                     58:       echo "** warning: gnulib-tool not found" 1>&2
                     59:     fi
                     60:   fi
                     61:   # Skip the gnulib-tool step if gnulib-tool was not found.
                     62:   if test -n "$GNULIB_TOOL"; then
                     63:     make -f Makefile.devel srclib/Makefile.gnulib GNULIB_TOOL="$GNULIB_TOOL"
                     64:   fi
                     65: fi
                     66: 
                     67: rm -f configure config.h.in include/iconv.h.build.in
                     68: rm -f lib/aliases.h lib/aliases_sysaix.h lib/aliases_syshpux.h lib/aliases_sysosf1.h lib/aliases_syssolaris.h
                     69: rm -f lib/aliases_aix.h lib/aliases_aix_sysaix.h
                     70: rm -f lib/aliases_osf1.h lib/aliases_osf1_sysosf1.h
                     71: rm -f lib/aliases_dos.h
                     72: rm -f lib/aliases_extra.h
                     73: rm -f lib/flags.h
                     74: rm -f lib/translit.h
                     75: rm -f man/iconv.1.html man/iconv.3.html man/iconv_close.3.html man/iconv_open.3.html
                     76: make -f Makefile.devel
                     77: 
                     78: (cd libcharset
                     79:  ./autogen.sh
                     80: )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>