From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/iconv/autogen.sh | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100755 jni/iconv/autogen.sh (limited to 'jni/iconv/autogen.sh') diff --git a/jni/iconv/autogen.sh b/jni/iconv/autogen.sh new file mode 100755 index 0000000..0be903c --- /dev/null +++ b/jni/iconv/autogen.sh @@ -0,0 +1,86 @@ +#!/bin/sh +# Convenience script for regenerating all autogeneratable files that are +# omitted from the version control repository. In particular, this script +# also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files +# with new versions of autoconf or automake. +# +# This script requires autoconf-2.63 and automake-1.11 in the PATH. +# It also requires either +# - the GNULIB_TOOL environment variable pointing to the gnulib-tool script +# in a gnulib checkout, or +# - the git program in the PATH and an internet connection. +# It also requires +# - the gperf program. + +# Copyright (C) 2003-2009 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Usage: ./autogen.sh [--skip-gnulib] +# +# Usage from a CVS checkout: ./autogen.sh +# This uses an up-to-date gnulib checkout. +# +# Usage from a released tarball: ./autogen.sh --skip-gnulib +# This does not use a gnulib checkout. + +skip_gnulib=false +while :; do + case "$1" in + --skip-gnulib) skip_gnulib=true; shift;; + *) break ;; + esac +done + +if test $skip_gnulib = false; then + if test -z "$GNULIB_TOOL"; then + # Check out gnulib in a subdirectory 'gnulib'. + if test -d gnulib; then + (cd gnulib && git pull) + else + git clone git://git.savannah.gnu.org/gnulib.git + fi + # Now it should contain a gnulib-tool. + if test -f gnulib/gnulib-tool; then + GNULIB_TOOL=`pwd`/gnulib/gnulib-tool + else + echo "** warning: gnulib-tool not found" 1>&2 + fi + fi + # Skip the gnulib-tool step if gnulib-tool was not found. + if test -n "$GNULIB_TOOL"; then + if test -f srcm4/gnulib-cache.m4; then + mv -f srcm4/gnulib-cache.m4 srcm4/gnulib-cache.m4~ + fi + if test -f srclib/Makefile.gnulib; then + mv -f srclib/Makefile.gnulib srclib/Makefile.gnulib~ + fi + make -f Makefile.devel srclib/Makefile.gnulib GNULIB_TOOL="$GNULIB_TOOL" + fi +fi + +rm -f configure config.h.in include/iconv.h.build.in +rm -f lib/aliases.h lib/aliases_sysaix.h lib/aliases_syshpux.h lib/aliases_sysosf1.h lib/aliases_syssolaris.h +rm -f lib/aliases_aix.h lib/aliases_aix_sysaix.h +rm -f lib/aliases_osf1.h lib/aliases_osf1_sysosf1.h +rm -f lib/aliases_dos.h +rm -f lib/aliases_extra.h +rm -f lib/flags.h +rm -f lib/translit.h +rm -f man/iconv.1.html man/iconv.3.html man/iconv_close.3.html man/iconv_open.3.html +make -f Makefile.devel + +(cd libcharset + ./autogen.sh +) -- cgit v1.2.3