Adjust to recent Gnulib changes

This commit is contained in:
Paul Eggert
2017-09-16 21:56:01 -07:00
parent d855f6c806
commit 4b314bdb6d
7 changed files with 76 additions and 89 deletions

View File

@@ -1,10 +1,10 @@
#! /bin/sh #! /bin/sh
# Print a version string. # Print a version string.
scriptversion=2014-12-08.12; # UTC scriptversion=2017-09-13.06; # UTC
# Bootstrap this package from checked-out sources. # Bootstrap this package from checked-out sources.
# Copyright (C) 2003-2015 Free Software Foundation, Inc. # Copyright (C) 2003-2017 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@ scriptversion=2014-12-08.12; # UTC
# GNU General Public License for more details. # GNU General Public License for more details.
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# Originally written by Paul Eggert. The canonical version of this # Originally written by Paul Eggert. The canonical version of this
# script is maintained as build-aux/bootstrap in gnulib, however, to # script is maintained as build-aux/bootstrap in gnulib, however, to
@@ -42,7 +42,7 @@ export LC_ALL
local_gl_dir=gl local_gl_dir=gl
# Honour $PERL, but work even if there is none # Honor $PERL, but work even if there is none.
PERL="${PERL-perl}" PERL="${PERL-perl}"
me=$0 me=$0
@@ -141,7 +141,7 @@ po_download_command_format=\
# Fallback for downloading .po files (if rsync fails). # Fallback for downloading .po files (if rsync fails).
po_download_command_format2=\ po_download_command_format2=\
"wget --mirror -nd -q -np -A.po -P '%s' \ "wget --mirror -nd -q -np -A.po -P '%s' \
http://translationproject.org/latest/%s/" https://translationproject.org/latest/%s/"
# Prefer a non-empty tarname (4th argument of AC_INIT if given), else # Prefer a non-empty tarname (4th argument of AC_INIT if given), else
# fall back to the package name (1st argument with munging) # fall back to the package name (1st argument with munging)
@@ -418,28 +418,30 @@ sort_ver() { # sort -V is not generally available
done done
} }
get_version_sed='
# Move version to start of line.
s/.*[v ]\([0-9]\)/\1/
# Skip lines that do not start with version.
/^[0-9]/!d
# Remove characters after the version.
s/[^.a-z0-9-].*//
# The first component must be digits only.
s/^\([0-9]*\)[a-z-].*/\1/
#the following essentially does s/5.005/5.5/
s/\.0*\([1-9]\)/.\1/g
p
q'
get_version() { get_version() {
app=$1 app=$1
$app --version >/dev/null 2>&1 || { $app --version; return 1; } $app --version >/dev/null 2>&1 || { $app --version; return 1; }
$app --version 2>&1 | $app --version 2>&1 | sed -n "$get_version_sed"
sed -n '# Move version to start of line.
s/.*[v ]\([0-9]\)/\1/
# Skip lines that do not start with version.
/^[0-9]/!d
# Remove characters after the version.
s/[^.a-z0-9-].*//
# The first component must be digits only.
s/^\([0-9]*\)[a-z-].*/\1/
#the following essentially does s/5.005/5.5/
s/\.0*\([1-9]\)/.\1/g
p
q'
} }
check_versions() { check_versions() {
@@ -788,9 +790,9 @@ symlink_to_dir()
# Leave any existing symlink alone, if it already points to the source, # Leave any existing symlink alone, if it already points to the source,
# so that broken build tools that care about symlink times # so that broken build tools that care about symlink times
# aren't confused into doing unnecessary builds. Conversely, if the # aren't confused into doing unnecessary builds. Conversely, if the
# existing symlink's time stamp is older than the source, make it afresh, # existing symlink's timestamp is older than the source, make it afresh,
# so that broken tools aren't confused into skipping needed builds. See # so that broken tools aren't confused into skipping needed builds. See
# <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00326.html>. # <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00326.html>.
test -h "$dst" && test -h "$dst" &&
src_ls=$(ls -diL "$src" 2>/dev/null) && set $src_ls && src_i=$1 && src_ls=$(ls -diL "$src" 2>/dev/null) && set $src_ls && src_i=$1 &&
dst_ls=$(ls -diL "$dst" 2>/dev/null) && set $dst_ls && dst_i=$1 && dst_ls=$(ls -diL "$dst" 2>/dev/null) && set $dst_ls && dst_i=$1 &&
@@ -915,7 +917,8 @@ if test $use_libtool = 1; then
esac esac
fi fi
echo "$0: $gnulib_tool $gnulib_tool_options --import ..." echo "$0: $gnulib_tool $gnulib_tool_options --import ..."
$gnulib_tool $gnulib_tool_options --import $gnulib_modules && $gnulib_tool $gnulib_tool_options --import $gnulib_modules \
|| die "gnulib-tool failed"
for file in $gnulib_files; do for file in $gnulib_files; do
symlink_to_dir "$GNULIB_SRCDIR" $file \ symlink_to_dir "$GNULIB_SRCDIR" $file \
@@ -1020,6 +1023,6 @@ echo "$0: done. Now you can run './configure'."
# eval: (add-hook 'write-file-hooks 'time-stamp) # eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion=" # time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC" # time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC" # time-stamp-end: "; # UTC"
# End: # End:

View File

@@ -1,6 +1,4 @@
/announce-gen /announce-gen
/arg-nonnull.h
/c++defs.h
/compile /compile
/config.guess /config.guess
/config.rpath /config.rpath
@@ -16,14 +14,12 @@
/install-sh /install-sh
/javacomp.sh.in /javacomp.sh.in
/javaexec.sh.in /javaexec.sh.in
/link-warning.h
/mdate-sh /mdate-sh
/missing /missing
/prefix-gnulib-mk
/test-driver /test-driver
/texinfo.tex /texinfo.tex
/update-copyright /update-copyright
/useless-if-before-free /useless-if-before-free
/vc-list-files /vc-list-files
/warn-on-use.h
/ylwrap /ylwrap
/prefix-gnulib-mk

View File

@@ -1,4 +0,0 @@
/_Noreturn.h
/arg-nonnull.h
/c++defs.h
/warn-on-use.h

54
lib/.gitignore vendored
View File

@@ -4,8 +4,7 @@
/*~ /*~
/.deps /.deps
/.dirstamp /.dirstamp
/Makefile /_Noreturn.h
/Makefile.in
/alignof.h /alignof.h
/alloca.h /alloca.h
/alloca.in.h /alloca.in.h
@@ -15,7 +14,9 @@
/asnprintf.c /asnprintf.c
/basename-lgpl.c /basename-lgpl.c
/basename.c /basename.c
/binary-io.c
/binary-io.h /binary-io.h
/bitrotate.c
/bitrotate.h /bitrotate.h
/c++defs.h /c++defs.h
/c-ctype.c /c-ctype.c
@@ -28,8 +29,6 @@
/charset.alias /charset.alias
/cloexec.c /cloexec.c
/cloexec.h /cloexec.h
/close-hook.c
/close-hook.h
/close-stream.c /close-stream.c
/close-stream.h /close-stream.h
/close.c /close.c
@@ -56,7 +55,6 @@
/exitfail.h /exitfail.h
/fatal-signal.c /fatal-signal.c
/fatal-signal.h /fatal-signal.h
/fclose.c
/fcntl.c /fcntl.c
/fcntl.h /fcntl.h
/fcntl.in.h /fcntl.in.h
@@ -81,19 +79,27 @@
/fseterr.h /fseterr.h
/fstat.c /fstat.c
/getdtablesize.c /getdtablesize.c
/getopt-cdefs.in.h
/getopt-core.h
/getopt-ext.h
/getopt-pfx-core.h
/getopt-pfx-ext.h
/getopt.c /getopt.c
/getopt.h /getopt.h
/getopt.in.h /getopt.in.h
/getopt1.c /getopt1.c
/getopt_int.h /getopt_int.h
/getprogname.c
/getprogname.h
/gettext.h /gettext.h
/gnulib.mk /gnulib.mk
/hard-locale.c
/hard-locale.h
/hash.c /hash.c
/hash.h /hash.h
/intprops.h /intprops.h
/inttypes.h /inttypes.h
/inttypes.in.h /inttypes.in.h
/ioctl.c
/isnan.c /isnan.c
/isnand-nolibm.h /isnand-nolibm.h
/isnand.c /isnand.c
@@ -103,9 +109,16 @@
/isnanl.c /isnanl.c
/itold.c /itold.c
/ldexpl.c /ldexpl.c
/limits.h
/limits.in.h
/localcharset.c /localcharset.c
/localcharset.h /localcharset.h
/lstat.c
/malloc.c /malloc.c
/malloca.c
/malloca.h
/malloca.valgrind
/math.c
/math.h /math.h
/math.in.h /math.in.h
/mbrtowc.c /mbrtowc.c
@@ -114,12 +127,11 @@
/mbswidth.h /mbswidth.h
/memchr.c /memchr.c
/memchr.valgrind /memchr.valgrind
/minmax.h
/msvc-inval.c /msvc-inval.c
/msvc-inval.h /msvc-inval.h
/msvc-nothrow.c /msvc-nothrow.c
/msvc-nothrow.h /msvc-nothrow.h
/nonblocking.c
/nonblocking.h
/obstack.c /obstack.c
/obstack.h /obstack.h
/obstack_printf.c /obstack_printf.c
@@ -140,7 +152,6 @@
/printf.c /printf.c
/progname.c /progname.c
/progname.h /progname.h
/quote.c
/quote.h /quote.h
/quotearg.c /quotearg.c
/quotearg.h /quotearg.h
@@ -154,6 +165,7 @@
/ref-del.sin /ref-del.sin
/sched.h /sched.h
/sched.in.h /sched.in.h
/sig-handler.c
/sig-handler.h /sig-handler.h
/sigaction.c /sigaction.c
/signal.h /signal.h
@@ -182,6 +194,8 @@
/spawnp.c /spawnp.c
/sprintf.c /sprintf.c
/stamp-h1 /stamp-h1
/stat-w32.c
/stat-w32.h
/stat.c /stat.c
/stdbool.h /stdbool.h
/stdbool.in.h /stdbool.in.h
@@ -192,7 +206,6 @@
/stdio--.h /stdio--.h
/stdio-impl.h /stdio-impl.h
/stdio-safer.h /stdio-safer.h
/stdio-write.c
/stdio.h /stdio.h
/stdio.in.h /stdio.in.h
/stdlib.h /stdlib.h
@@ -213,20 +226,18 @@
/strnlen.c /strnlen.c
/strverscmp.c /strverscmp.c
/sys /sys
/sys_ioctl.h
/sys_ioctl.in.h /sys_ioctl.in.h
/sys_socket.h
/sys_socket.in.h /sys_socket.in.h
/sys_stat.h
/sys_stat.in.h /sys_stat.in.h
/sys_time.in.h
/sys_types.in.h /sys_types.in.h
/sys_wait.h
/sys_wait.in.h /sys_wait.in.h
/sysexits.in.h /sysexits.in.h
/time.h /time.h
/time.in.h /time.in.h
/unistd--.h /unistd--.h
/unistd-safer.h /unistd-safer.h
/unistd.c
/unistd.h /unistd.h
/unistd.in.h /unistd.in.h
/unitypes.h /unitypes.h
@@ -234,6 +245,7 @@
/uniwidth /uniwidth
/uniwidth.h /uniwidth.h
/uniwidth.in.h /uniwidth.in.h
/unlink.c
/unlocked-io.h /unlocked-io.h
/unsetenv.c /unsetenv.c
/vasnprintf.c /vasnprintf.c
@@ -242,7 +254,6 @@
/vfprintf.c /vfprintf.c
/vsnprintf.c /vsnprintf.c
/vsprintf.c /vsprintf.c
/w32sock.h
/w32spawn.h /w32spawn.h
/wait-process.c /wait-process.c
/wait-process.h /wait-process.h
@@ -250,6 +261,7 @@
/warn-on-use.h /warn-on-use.h
/wchar.h /wchar.h
/wchar.in.h /wchar.in.h
/wctype-h.c
/wctype.h /wctype.h
/wctype.in.h /wctype.in.h
/wcwidth.c /wcwidth.c
@@ -260,17 +272,7 @@
/xmalloc.c /xmalloc.c
/xmemdup0.c /xmemdup0.c
/xmemdup0.h /xmemdup0.h
/xsize.c
/xsize.h /xsize.h
/xstrndup.c /xstrndup.c
/xstrndup.h /xstrndup.h
/binary-io.c
/xsize.c
/bitrotate.c
/math.c
/sig-handler.c
/unistd.c
/wctype-h.c
/lstat.c
/unlink.c
/gettimeofday.c
/sys_time.in.h

38
m4/.gitignore vendored
View File

@@ -1,10 +1,10 @@
/*~
/00gnulib.m4 /00gnulib.m4
/absolute-header.m4
/alloca.m4 /alloca.m4
/argmatch.m4
/asm-underscore.m4 /asm-underscore.m4
/assert.m4 /assert.m4
/calloc.m4 /calloc.m4
/cloexec.m4
/close-stream.m4 /close-stream.m4
/close.m4 /close.m4
/closeout.m4 /closeout.m4
@@ -12,9 +12,9 @@
/config-h.m4 /config-h.m4
/configmake.m4 /configmake.m4
/dirname.m4 /dirname.m4
/dos.m4
/double-slash-root.m4 /double-slash-root.m4
/dup2.m4 /dup2.m4
/eealloc.m4
/environ.m4 /environ.m4
/errno_h.m4 /errno_h.m4
/error.m4 /error.m4
@@ -22,8 +22,8 @@
/exponentf.m4 /exponentf.m4
/exponentl.m4 /exponentl.m4
/extensions.m4 /extensions.m4
/extern-inline.m4
/fatal-signal.m4 /fatal-signal.m4
/fclose.m4
/fcntl-o.m4 /fcntl-o.m4
/fcntl.m4 /fcntl.m4
/fcntl_h.m4 /fcntl_h.m4
@@ -38,6 +38,7 @@
/fstat.m4 /fstat.m4
/getdtablesize.m4 /getdtablesize.m4
/getopt.m4 /getopt.m4
/getprogname.m4
/gettext.m4 /gettext.m4
/glibc2.m4 /glibc2.m4
/glibc21.m4 /glibc21.m4
@@ -45,12 +46,11 @@
/gnulib-common.m4 /gnulib-common.m4
/gnulib-comp.m4 /gnulib-comp.m4
/gnulib-tool.m4 /gnulib-tool.m4
/hash.m4 /hard-locale.m4
/iconv.m4 /iconv.m4
/include_next.m4 /include_next.m4
/intdiv0.m4 /intdiv0.m4
/intl.m4 /intl.m4
/intl.m4~
/intldir.m4 /intldir.m4
/intlmacosx.m4 /intlmacosx.m4
/intmax.m4 /intmax.m4
@@ -58,7 +58,6 @@
/inttypes-pri.m4 /inttypes-pri.m4
/inttypes.m4 /inttypes.m4
/inttypes_h.m4 /inttypes_h.m4
/ioctl.m4
/isnan.m4 /isnan.m4
/isnand.m4 /isnand.m4
/isnanf.m4 /isnanf.m4
@@ -73,19 +72,23 @@
/lib-link.m4 /lib-link.m4
/lib-prefix.m4 /lib-prefix.m4
/libunistring-base.m4 /libunistring-base.m4
/limits-h.m4
/localcharset.m4 /localcharset.m4
/locale-fr.m4 /locale-fr.m4
/locale-ja.m4 /locale-ja.m4
/locale-zh.m4 /locale-zh.m4
/lock.m4 /lock.m4
/longlong.m4 /longlong.m4
/lstat.m4
/malloc.m4 /malloc.m4
/malloca.m4
/math_h.m4 /math_h.m4
/mbrtowc.m4 /mbrtowc.m4
/mbsinit.m4 /mbsinit.m4
/mbstate_t.m4 /mbstate_t.m4
/mbswidth.m4 /mbswidth.m4
/memchr.m4 /memchr.m4
/minmax.m4
/mmap-anon.m4 /mmap-anon.m4
/mode_t.m4 /mode_t.m4
/msvc-inval.m4 /msvc-inval.m4
@@ -93,13 +96,16 @@
/multiarch.m4 /multiarch.m4
/nls.m4 /nls.m4
/nocrash.m4 /nocrash.m4
/non-recursive-gnulib-prefix-hack.m4
/obstack-printf.m4
/obstack.m4
/off_t.m4 /off_t.m4
/open-cloexec.m4
/open.m4 /open.m4
/pathmax.m4 /pathmax.m4
/perror.m4 /perror.m4
/pipe2.m4 /pipe2.m4
/po.m4 /po.m4
/po.m4~
/posix_spawn.m4 /posix_spawn.m4
/printf-frexp.m4 /printf-frexp.m4
/printf-frexpl.m4 /printf-frexpl.m4
@@ -107,6 +113,7 @@
/printf-posix.m4 /printf-posix.m4
/printf.m4 /printf.m4
/progtest.m4 /progtest.m4
/pthread_rwlock_rdlock.m4
/quote.m4 /quote.m4
/quotearg.m4 /quotearg.m4
/raise.m4 /raise.m4
@@ -122,8 +129,6 @@
/size_max.m4 /size_max.m4
/snprintf-posix.m4 /snprintf-posix.m4
/snprintf.m4 /snprintf.m4
/socklen.m4
/sockpfaf.m4
/spawn-pipe.m4 /spawn-pipe.m4
/spawn_h.m4 /spawn_h.m4
/sprintf-posix.m4 /sprintf-posix.m4
@@ -133,7 +138,6 @@
/stddef_h.m4 /stddef_h.m4
/stdint.m4 /stdint.m4
/stdint_h.m4 /stdint_h.m4
/stdio-safer.m4
/stdio_h.m4 /stdio_h.m4
/stdlib_h.m4 /stdlib_h.m4
/stpcpy.m4 /stpcpy.m4
@@ -145,17 +149,16 @@
/strndup.m4 /strndup.m4
/strnlen.m4 /strnlen.m4
/strverscmp.m4 /strverscmp.m4
/sys_ioctl_h.m4
/sys_socket_h.m4 /sys_socket_h.m4
/sys_stat_h.m4 /sys_stat_h.m4
/sys_types_h.m4 /sys_types_h.m4
/sys_wait_h.m4 /sys_wait_h.m4
/sysexits.m4
/threadlib.m4 /threadlib.m4
/time_h.m4 /time_h.m4
/uintmax_t.m4 /uintmax_t.m4
/unistd-safer.m4 /unistd-safer.m4
/unistd_h.m4 /unistd_h.m4
/unlink.m4
/unlocked-io.m4 /unlocked-io.m4
/vasnprintf.m4 /vasnprintf.m4
/vfprintf-posix.m4 /vfprintf-posix.m4
@@ -175,12 +178,3 @@
/xalloc.m4 /xalloc.m4
/xsize.m4 /xsize.m4
/xstrndup.m4 /xstrndup.m4
/obstack-printf.m4
/extern-inline.m4
/non-recursive-gnulib-prefix-hack.m4
/absolute-header.m4
/lstat.m4
/unlink.m4
/gettimeofday.m4
/obstack.m4
/sys_time_h.m4

4
po/.gitignore vendored
View File

@@ -1,12 +1,11 @@
/*~
/*.gmo /*.gmo
/*.po /*.po
/*.po~
/.reference /.reference
/LINGUAS /LINGUAS
/Makefile /Makefile
/Makefile.in /Makefile.in
/Makefile.in.in /Makefile.in.in
/Makefile.in.in~
/Makevars /Makevars
/Makevars.template /Makevars.template
/POTFILES /POTFILES
@@ -15,7 +14,6 @@
/boldquot.sed /boldquot.sed
/en@boldquot.header /en@boldquot.header
/en@quot.header /en@quot.header
/insert-header.sed
/insert-header.sin /insert-header.sin
/quot.sed /quot.sed
/remove-potcdate.sed /remove-potcdate.sed

View File

@@ -1,12 +1,11 @@
/*~
/*.gmo /*.gmo
/*.po /*.po
/*.po~
/.reference /.reference
/LINGUAS /LINGUAS
/Makefile /Makefile
/Makefile.in /Makefile.in
/Makefile.in.in /Makefile.in.in
/Makefile.in.in~
/Makevars /Makevars
/Makevars.template /Makevars.template
/POTFILES /POTFILES
@@ -15,7 +14,6 @@
/boldquot.sed /boldquot.sed
/en@boldquot.header /en@boldquot.header
/en@quot.header /en@quot.header
/insert-header.sed
/insert-header.sin /insert-header.sin
/quot.sed /quot.sed
/remove-potcdate.sed /remove-potcdate.sed