gnulib.git
12 years agomaint: enable sc_prohibit_cloexec_without_use
Jim Meyering [Tue, 17 Jan 2012 17:30:09 +0000 (18:30 +0100)]
maint: enable sc_prohibit_cloexec_without_use

* cfg.mk: Enable sc_prohibit_cloexec_without_use.
* lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.

12 years agomaint: enable sc_prohibit_intprops_without_use
Jim Meyering [Tue, 17 Jan 2012 17:21:34 +0000 (18:21 +0100)]
maint: enable sc_prohibit_intprops_without_use

* cfg.mk: Enable sc_prohibit_intprops_without_use
* tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
* lib/ftoastr.c: Likewise.

12 years agomaint: enable sc_prohibit_hash_pjw_without_use
Jim Meyering [Tue, 17 Jan 2012 17:10:01 +0000 (18:10 +0100)]
maint: enable sc_prohibit_hash_pjw_without_use

* cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
* top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
to match any use of \<hash_pjw\>, i.e., not necessarily with a
following " (".

12 years agomaint: enable double-word-prohibiting rule
Jim Meyering [Tue, 17 Jan 2012 17:05:45 +0000 (18:05 +0100)]
maint: enable double-word-prohibiting rule

* cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
Exempt three files.

12 years agomaint: remove empty lines at EOF, but excluding modules/*
Jim Meyering [Tue, 17 Jan 2012 16:56:22 +0000 (17:56 +0100)]
maint: remove empty lines at EOF, but excluding modules/*

Apply syntax rules at home as well as abroad.  Most changes
were induced by running this:
  make srcdir=. _build-aux=build-aux -f top/maint.mk \
    sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
    | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
* cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
Exempt modules/* and two binary files.
Also exclude doc/INSTALL*, per request from Bruno Haible.
* doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
* doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
* doc/Copyright/request-assign.future: Likewise.
* doc/Copyright/request-disclaim.changes: Likewise.
* doc/INSTALL: Likewise.
* doc/INSTALL.ISO: Likewise.
* doc/INSTALL.UTF-8: Likewise.
* doc/acl-cygwin.txt: Likewise.
* doc/acl-resources.txt: Likewise.
* doc/fdl-1.2.texi: Likewise.
* doc/fdl-1.3.texi: Likewise.
* doc/fdl.texi: Likewise.
* lib/argp-pin.c: Likewise.
* lib/round.c: Likewise.
* lib/unicase/u16-totitle.c: Likewise.
* lib/unictype/block_test.c: Likewise.
* lib/uninorm/canonical-decomposition.c: Likewise.
* m4/README: Likewise.
* m4/relocatable-lib.m4: Likewise.
* tests/test-isnand-nolibm.c: Likewise.
* tests/test-isnand.c: Likewise.
* tests/uninorm/NormalizationTest.txt: Likewise.

12 years agomaint: add framework to run syntax-check rules against gnulib sources
Jim Meyering [Tue, 17 Jan 2012 16:51:40 +0000 (17:51 +0100)]
maint: add framework to run syntax-check rules against gnulib sources

* cfg.mk: New file, to disable all currently-failing tests.
We'll enable them one by one, as they are made to pass.
* Makefile (sc_maint): New rule.

12 years agostdint: Add support for Android.
Bruno Haible [Sat, 21 Jan 2012 12:09:08 +0000 (13:09 +0100)]
stdint: Add support for Android.

* lib/stdint.in.h: When included from Bionic <sys/types.h>, just
include the system's <stdint.h>.
Reported by Simon Josefsson <simon@josefsson.org>.

12 years agoautoupdate
Karl Berry [Thu, 19 Jan 2012 17:37:34 +0000 (09:37 -0800)]
autoupdate

12 years agobootstrap: add bootstrap_post_import_hook
Jim Meyering [Thu, 19 Jan 2012 05:14:31 +0000 (06:14 +0100)]
bootstrap: add bootstrap_post_import_hook

Bison does still need something like the gnulib_mk_hook whose
invocation I had to remove along with slurp in commit 767ccd40.
Technically, we could get along without it, but doing so would
have required living with a warning and a mandatory post-bootstrap
automake rerun.
* build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
(bootstrap_post_import_hook): New function.
Invoke it after gnulib-tool --import and before autoreconf.

12 years agogitlog-to-changelog: don't use "no_"-prefixed variable name
Jim Meyering [Wed, 18 Jan 2012 07:53:23 +0000 (08:53 +0100)]
gitlog-to-changelog: don't use "no_"-prefixed variable name

* build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
to enable both --cluster and --no-cluster.  Change variable name,
s/\$no_cluster/$cluster/, and reverse usage to match.

12 years agogitlog-to-changelog: use "||", not "or" in expressions
Jim Meyering [Wed, 18 Jan 2012 07:45:29 +0000 (08:45 +0100)]
gitlog-to-changelog: use "||", not "or" in expressions

* build-aux/gitlog-to-changelog (main): Use "||", not "or" in
expressions.

12 years agogitlog-to-changelog: new option --no-cluster
Joel E. Denny [Tue, 17 Jan 2012 21:23:30 +0000 (16:23 -0500)]
gitlog-to-changelog: new option --no-cluster

* build-aux/gitlog-to-changelog: New option --no-cluster, disables
clustering of adjacent commit messages.

12 years agomaint: spell file systems with two words, not one
Jim Meyering [Tue, 17 Jan 2012 16:30:33 +0000 (17:30 +0100)]
maint: spell file systems with two words, not one

* m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
two words, not one.

12 years agofix a typo
Jim Meyering [Mon, 16 Jan 2012 21:02:21 +0000 (22:02 +0100)]
fix a typo

12 years agobootstrap: add a FIXME comment to ensure we eventually remove the hack
Jim Meyering [Mon, 16 Jan 2012 20:56:31 +0000 (21:56 +0100)]
bootstrap: add a FIXME comment to ensure we eventually remove the hack

* build-aux/bootstrap (gnulib_tool_options): Add comment.

12 years agobootstrap: cater to autoconf 2.59
Eric Blake [Mon, 16 Jan 2012 17:55:56 +0000 (10:55 -0700)]
bootstrap: cater to autoconf 2.59

Autoconf didn't add --no-recursive until 2.59c, but gnulib supports
as far back as 2.59 for platforms like RHEL 5.

* build-aux/bootstrap (AUTORCONF): Work even when --no-recursive
is not available.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agobootstrap: properly check for libtool
Eric Blake [Mon, 16 Jan 2012 17:16:01 +0000 (10:16 -0700)]
bootstrap: properly check for libtool

Commit 767ccd40 changed things to invoke libtoolize before
gnulib-tool, but only for projects that use LT_INIT, even
though we had already probed for libtool via older spellings.

* build-aux/bootstrap (libtoolize): Also run libtool when older
usage is detected.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agoImprove support for MSVC 9.
Bruno Haible [Sun, 15 Jan 2012 16:35:55 +0000 (17:35 +0100)]
Improve support for MSVC 9.

* lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
clashes on MSVC.
* lib/fcntl.in.h: Likewise.
* lib/stdlib.in.h: Likewise.
* lib/sys_stat.in.h: Likewise.

12 years agognupload: we hold the master copy of this script now
Stefano Lattarini [Sun, 15 Jan 2012 15:49:11 +0000 (16:49 +0100)]
gnupload: we hold the master copy of this script now

For motivation and more information, see:
<http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>

* build-aux/gnupload: Make it clear in the heading comments that the
master copy of this file is maintained by gnulib.  Since we are at
it, bump its copyright year and ...
($scriptversion): ... the date in its version.
($usage): Patches and bug reports should be sent to the gnulib list,
not the automake one.
* config/srclist.txt: Don't try to sync 'gnupload' from automake
anymore.

12 years agoFix module 'random'.
Bruno Haible [Sun, 15 Jan 2012 12:19:33 +0000 (13:19 +0100)]
Fix module 'random'.

* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
initstate, setstate are declared.

12 years agoTests for module 'random'.
Bruno Haible [Sat, 14 Jan 2012 14:22:49 +0000 (15:22 +0100)]
Tests for module 'random'.

* modules/random-tests: New file.
* tests/test-random.c: New file, based on tests/test-random_r.c.

12 years agoNew module 'random'.
Bruno Haible [Sat, 14 Jan 2012 14:15:28 +0000 (15:15 +0100)]
New module 'random'.

* lib/stdlib.in.h (random, srandom, initstate, setstate): New
declarations.
* lib/random.c: New file, based on glibc/stdlib/random.c.
* m4/random.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
HAVE_RANDOM.
* modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
* modules/random: New file.
* config/srclist.txt: Add an entry for random.c.
* doc/posix-functions/random.texi: Mention the 'random' module.
* doc/posix-functions/initstate.texi: Likewise.
* doc/posix-functions/setstate.texi: Likewise.
* doc/posix-functions/srandom.texi: Likewise.

12 years agoautoupdate
Karl Berry [Fri, 13 Jan 2012 14:40:53 +0000 (06:40 -0800)]
autoupdate

12 years agorandom_r: Use common idioms.
Bruno Haible [Thu, 12 Jan 2012 21:55:13 +0000 (22:55 +0100)]
random_r: Use common idioms.

* lib/random_r.c: Include <stdlib.h> first.

12 years agorandom_r: Override incompatible API on AIX, OSF/1.
Bruno Haible [Thu, 12 Jan 2012 21:54:15 +0000 (22:54 +0100)]
random_r: Override incompatible API on AIX, OSF/1.

* lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
Override the system function if REPLACE_RANDOM_R is 1.
* m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
and OSF/1, set REPLACE_RANDOM_R.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
* modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
* modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
* doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
* doc/glibc-functions/random_r.texi: Likewise.
* doc/glibc-functions/setstate_r.texi: Likewise.

12 years agorandom_r: Support for MSVC 9.
Bruno Haible [Thu, 12 Jan 2012 20:58:09 +0000 (21:58 +0100)]
random_r: Support for MSVC 9.

* lib/random_r.c: Include stdint.h, not inttypes.h.

12 years agoinet_ntop: guard extra work by IF_LINT
Eric Blake [Thu, 12 Jan 2012 15:44:08 +0000 (08:44 -0700)]
inet_ntop: guard extra work by IF_LINT

No need to penalize the code just to silence a gcc warning, so
follow the conventions used elsewhere in gnulib.  Clients that
want to use extra warnings should also be using -Dlint.

* lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
better code generation when not checking for warnings.
Suggested by Paul Eggert and Jim Meyering.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agostrptime: fix regression on mingw
Eric Blake [Thu, 12 Jan 2012 15:39:07 +0000 (08:39 -0700)]
strptime: fix regression on mingw

The previous change lost the side effect of skipping past a
time-zone offset sign.  Instead, fix things to rely on the
fact that _GL_UNUSED can be applied to any variable, even if
some compilation paths use it, to silence gcc on the paths
where it is not used.

* lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
Fix regression.  Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agocopy-file: add error-code-returning variant.
Reuben Thomas [Thu, 12 Jan 2012 02:04:49 +0000 (03:04 +0100)]
copy-file: add error-code-returning variant.

* lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
(qcopy_file_preserving): New declaration.
* lib/copy-file.c (qcopy_file_preserving): Renamed from
copy_file_preserving. Change return type to 'int'. Don't emit an error
message here.
(copy_file_preserving): New function.
* tests/test-copy-file.c: Include <stdlib.h>.
(main): Test qcopy_file_preserving if the environment variable
NO_STDERR_OUTPUT is set.
* tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
with NO_STDERR_OUTPUT
* tests/test-copy-file-2.sh: Likewise.

12 years agocopy-file: Use 'quote' module consistently.
Bruno Haible [Wed, 11 Jan 2012 01:11:34 +0000 (02:11 +0100)]
copy-file: Use 'quote' module consistently.

* lib/copy-file.c (copy_file_preserving): Use quote().

12 years agocopy-file: Refactor.
Bruno Haible [Wed, 11 Jan 2012 01:01:45 +0000 (02:01 +0100)]
copy-file: Refactor.

* lib/copy-file.c: Include quote.h.
(copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
message here.
* modules/copy-file (Depends-on): Add quote.

12 years agoacl: Export qcopy_acl.
Bruno Haible [Wed, 11 Jan 2012 00:54:25 +0000 (01:54 +0100)]
acl: Export qcopy_acl.

* lib/acl.h (qcopy_acl): New declaration.
* lib/copy-acl.c (qcopy_acl): Make non-static.

12 years agoacl: Rename a local variable.
Bruno Haible [Wed, 11 Jan 2012 00:52:23 +0000 (01:52 +0100)]
acl: Rename a local variable.

* lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.

12 years agoacl: Align return values of copy_acl and qcopy_acl.
Bruno Haible [Wed, 11 Jan 2012 00:51:25 +0000 (01:51 +0100)]
acl: Align return values of copy_acl and qcopy_acl.

* lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
maybe < -1.

12 years agostrptime: silence gcc warnings
Eric Blake [Wed, 11 Jan 2012 22:49:20 +0000 (15:49 -0700)]
strptime: silence gcc warnings

Cross-compiling to mingw raised a couple of gcc warnings.

* lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
[!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
Reported by Daniel P. Berrange.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agoinet_ntop: silence gcc warning
Eric Blake [Wed, 11 Jan 2012 21:48:31 +0000 (14:48 -0700)]
inet_ntop: silence gcc warning

gcc -O2 couldn't tell that if best.base != -1, then best.len
was necessarily initialized.

* lib/inet_ntop.c (inet_ntop6): Initialize best.base.
Reported by Daniel P. Berrange.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agogetloadavg test: skip the test on GNU/Linux without /proc mounted
Dmitry V. Levin [Wed, 11 Jan 2012 20:49:06 +0000 (00:49 +0400)]
getloadavg test: skip the test on GNU/Linux without /proc mounted

GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
file.  When /proc is not mounted, it always fails with ENOENT.
* tests/test-getloadavg.c (main): Treat ENOENT return code from
getloadavg(3) the same way as ENOSYS and ENOTSUP.

12 years agoregex: Avoid link error on MSVC 9.
Bruno Haible [Tue, 10 Jan 2012 21:28:30 +0000 (22:28 +0100)]
regex: Avoid link error on MSVC 9.

* modules/regex (Depends-on): Add wctype.

12 years agodoc: Mention --with-tests option.
Bruno Haible [Tue, 10 Jan 2012 19:53:57 +0000 (20:53 +0100)]
doc: Mention --with-tests option.

* gnulib-tool (func_usage): Suggest --with-tests for --test etc.
* doc/gnulib.texi (Extra tests modules): Mention the need to pass
--with-tests.
Reported by Reuben Thomas.

12 years agousers.txt: order package names lexicographically.
Reuben Thomas [Tue, 10 Jan 2012 18:42:39 +0000 (18:42 +0000)]
users.txt: order package names lexicographically.

12 years agomaint.mk: fix description in comment
Jim Meyering [Tue, 10 Jan 2012 16:32:32 +0000 (17:32 +0100)]
maint.mk: fix description in comment

* top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.

12 years agoignore-value: remove deprecated ignore_ptr function
Jim Meyering [Tue, 10 Jan 2012 07:38:52 +0000 (08:38 +0100)]
ignore-value: remove deprecated ignore_ptr function

* lib/ignore-value.h (ignore_ptr): Remove deprecated function.
* NEWS: Note this.

12 years agotest-init.sh: avoid a subshell
Jim Meyering [Mon, 9 Jan 2012 09:12:18 +0000 (10:12 +0100)]
test-init.sh: avoid a subshell

* tests/test-init.sh: Remove protective subshell.
Suggested by Bernhard Voelker.  While a subshell is normally
required to protect against older shells (Solaris, FreeBSD) that
warn about a missing program before performing redirection, the
shell-selection tests performed by init.sh probably exclude any
offending shell.

12 years agosetlocale tests: Avoid test failure on Solaris 11 2011-11.
Bruno Haible [Sun, 8 Jan 2012 22:32:36 +0000 (23:32 +0100)]
setlocale tests: Avoid test failure on Solaris 11 2011-11.

* tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
variable.

12 years agoposix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
Bruno Haible [Sun, 8 Jan 2012 21:31:53 +0000 (22:31 +0100)]
posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.

* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
macro.
* lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_addopen.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
the Solaris 11 bug.

12 years agoposix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
Bruno Haible [Sun, 8 Jan 2012 21:18:30 +0000 (22:18 +0100)]
posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.

* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
macro.
* lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_adddup2.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
* modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
the Solaris 11 bug.

12 years agoposix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
Bruno Haible [Sun, 8 Jan 2012 21:00:12 +0000 (22:00 +0100)]
posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.

* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
HAVE_WORKING_POSIX_SPAWN.
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
* lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_addclose.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
* modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
the Solaris 11 bug.

12 years agodoc: Update for Solaris 11 2011-11.
Bruno Haible [Sun, 8 Jan 2012 18:57:28 +0000 (19:57 +0100)]
doc: Update for Solaris 11 2011-11.

* doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
* m4/printf.m4: Update comments.

12 years agomktime: Avoid compilation error on Solaris 11.
Bruno Haible [Sun, 8 Jan 2012 18:07:23 +0000 (19:07 +0100)]
mktime: Avoid compilation error on Solaris 11.

* lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.

12 years agodoc: Small fix.
Bruno Haible [Sun, 8 Jan 2012 14:25:43 +0000 (15:25 +0100)]
doc: Small fix.

* doc/posix-headers/nl_types.texi: Correct platforms list.

12 years agoautoupdate
Karl Berry [Sun, 8 Jan 2012 14:18:05 +0000 (06:18 -0800)]
autoupdate

12 years agoAdd lgpl-3.0 module.
Simon Josefsson [Sun, 8 Jan 2012 13:49:07 +0000 (14:49 +0100)]
Add lgpl-3.0 module.

* MODULES.html.sh (Support for building documentation): Add
lgpl-3.0.
* modules/lgpl-3.0: New file.

12 years agoselect.c: indent with spaces, not TABs
Jim Meyering [Sun, 8 Jan 2012 13:35:22 +0000 (14:35 +0100)]
select.c: indent with spaces, not TABs

* lib/select.c (windows_poll_handle): Indent with spaces, not TABs.

12 years agoautoupdate
Karl Berry [Sat, 7 Jan 2012 16:49:48 +0000 (08:49 -0800)]
autoupdate

12 years agoAdd ChangeLog entries for last 3 commits.
Paolo Bonzini [Sat, 7 Jan 2012 15:09:11 +0000 (16:09 +0100)]
Add ChangeLog entries for last 3 commits.

12 years agoquotearg: do not use grave accent for left quote
Paolo Bonzini [Sun, 18 Dec 2011 14:44:17 +0000 (15:44 +0100)]
quotearg: do not use grave accent for left quote

* lib/quotearg.c (gettext_quote): Map "`" to "'" for locale_quoting_style.
(quotearg_buffer_restyled): Fix example.
* tests/test-quotearg-simple.c (results_g): Adjust test vectors.

12 years agoquotearg: fall back to Unicode single quotes in UTF-8 and GB-18030 locales
Paolo Bonzini [Sun, 18 Dec 2011 14:33:53 +0000 (15:33 +0100)]
quotearg: fall back to Unicode single quotes in UTF-8 and GB-18030 locales

Most programs do not have translation catalogs for English and much less
separate catalogs for British and American English.  Drop the suggestion
to translators about these two, and provide it automatically for Unicode
locales.  Like most programs, even those using American English, we use
single quotation marks.  This conflicts with the American typographic
convention, but works better when you cite the entire error message
within double quotes.  It also tries not to clash with established
practice and with what non-gnulib programs will usually do.

* lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when using
an UTF-8 or GB-18030 locale.  The list of other locales with quotes was
provided by Bruno Haible.
(quotearg_buffer_restyled): Adjust instructions to translators.
* lib/quotearg.h (locale_quoting_style): Do not put an example in the
text, since this would be wrong when using Unicode.
* modules/quotearg: Depend on c-strcaseeq.

12 years agoquotearg: fix Wikipedia link
Paolo Bonzini [Sun, 18 Dec 2011 14:31:23 +0000 (15:31 +0100)]
quotearg: fix Wikipedia link

* lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.

12 years agoFix for mingw with MSVC9.
Simon Josefsson [Sat, 7 Jan 2012 09:13:28 +0000 (10:13 +0100)]
Fix for mingw with MSVC9.

* m4/ld-version-script.m4: Check that compiler rejects version
scripts with syntax errors.  Reported by Bruno Haible
<bruno@clisp.org>.

12 years agoTalk about "native Windows API", not "Woe32".
Bruno Haible [Sat, 7 Jan 2012 03:22:05 +0000 (04:22 +0100)]
Talk about "native Windows API", not "Woe32".

* lib/accept4.c: Update comments to mention native Windows.
* lib/execute.c: Likewise.
* lib/fatal-signal.c: Likewise.
* lib/localcharset.c: Likewise.
* lib/nanosleep.c: Likewise.
* lib/nl_langinfo.c: Likewise.
* lib/pclose.c: Likewise.
* lib/pipe-filter-gi.c: Likewise.
* lib/pipe-filter-ii.c: Likewise.
* lib/pipe.c: Likewise.
* lib/pipe2.c: Likewise.
* lib/popen.c: Likewise.
* lib/progreloc.c: Likewise.
* lib/relocatable.c: Likewise.
* lib/sigaction.c: Likewise.
* lib/sigprocmask.c: Likewise.
* lib/spawn-pipe.h: Likewise.
* lib/spawn-pipe.c: Likewise.
* lib/spawni.c: Likewise.
* lib/stat-time.h: Likewise.
* lib/w32spawn.h: Likewise.
* tests/test-isatty.c: Likewise.
* lib/config.charset: More comments.
* doc/gnulib-intro.texi: Mention native Windows.
* doc/posix-functions/_Exit_C99.texi: Likewise.
* doc/posix-headers/fcntl.texi: Likewise.

12 years agoargp: Avoid crash if translator uses % characters in a translation.
Guillem Jover [Sat, 7 Jan 2012 00:42:41 +0000 (01:42 +0100)]
argp: Avoid crash if translator uses % characters in a translation.

* lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
Reported by Mats Erik Andersson <gnu@gisladisker.se>.

12 years agodoc: add ChangeLog entry for previous change
Paul Eggert [Fri, 6 Jan 2012 18:55:20 +0000 (10:55 -0800)]
doc: add ChangeLog entry for previous change

12 years agodoc: C11 and C++11 are now official
Paul Eggert [Fri, 6 Jan 2012 17:55:50 +0000 (09:55 -0800)]
doc: C11 and C++11 are now official

12 years agouc-is-grapheme-break tests: Tweak.
Bruno Haible [Fri, 6 Jan 2012 14:04:37 +0000 (15:04 +0100)]
uc-is-grapheme-break tests: Tweak.

* tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
message.

12 years agotest-init.sh: correct the test for diff -u
Bruno Haible [Fri, 6 Jan 2012 08:21:29 +0000 (09:21 +0100)]
test-init.sh: correct the test for diff -u

* tests/test-init.sh: Also redirect stdout to /dev/null.

12 years agodoc: fix minor quoting issues, mostly with `
Paul Eggert [Fri, 6 Jan 2012 07:59:09 +0000 (23:59 -0800)]
doc: fix minor quoting issues, mostly with `

12 years agoIn commentary, do not use ` to quote.
Paul Eggert [Fri, 6 Jan 2012 07:53:49 +0000 (23:53 -0800)]
In commentary, do not use ` to quote.

12 years agoUse ', not `, for quoting output.
Paul Eggert [Fri, 6 Jan 2012 07:44:15 +0000 (23:44 -0800)]
Use ', not `, for quoting output.

* build-aux/announce-gen (usage, sizes, print_news_deltas)
(print_changelog_deltas, get_tool_versions, main program):
* build-aux/git-version-gen:
* build-aux/gitlog-to-changelog (usage, parse_amend_file):
* build-aux/move-if-change (help):
* build-aux/useless-if-before-free (usage, main program):
* check-module (parse_module_file, usage)
(find_included_lib_files, check_module):
* lib/argmatch.c (main) [TEST]:
* lib/argp-help.c (_help):
* lib/getopt1.c (main) [TEST]:
* lib/git-merge-changelog.c (usage):
* lib/xstrtol-error.c (xstrtol_error):
* m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
* m4/argz.m4 (gl_FUNC_ARGZ):
* m4/bison.m4 (gl_BISON):
* m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
* m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
* m4/fpending.m4 (gl_PREREQ_FPENDING):
* m4/gc-random.m4 (gl_GC_RANDOM):
* m4/intl.m4 (gt_CHECK_DECL):
* m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
(AC_TYPE_UNSIGNED_LONG_LONG_INT):
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
* m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
* m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
* m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
* tests/test-dirname.c (main):
* tests/test-getpass.c (main):
* tests/test-iconvme.c (main):
* tests/test-parse-datetime.c (LOG):
* tests/test-xstrtoimax.sh:
* tests/test-xstrtol.sh:
* tests/test-xstrtoll.sh:
* tests/test-xstrtoumax.sh:
* tests/unigbrk/test-uc-is-grapheme-break.c (main):
* top/GNUmakefile (abort-due-to-no-makefile):
Quote 'like this', not `like this', as per the recent change to
the GNU coding standards.

12 years agostrtoimax: Don't force a replacement on systems where intmax_t is int.
Bruno Haible [Thu, 5 Jan 2012 19:18:54 +0000 (20:18 +0100)]
strtoimax: Don't force a replacement on systems where intmax_t is int.

* m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
'intmax_t' is not larger than 'int'.
Reported by Pádraig Brady <P@draigBrady.com>.

12 years agodoc: Mention NetBSD bugs.
Bruno Haible [Thu, 5 Jan 2012 18:08:21 +0000 (19:08 +0100)]
doc: Mention NetBSD bugs.

* doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
* doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.

12 years agostrtoumax tests: Enhance tests.
Bruno Haible [Thu, 5 Jan 2012 17:51:23 +0000 (18:51 +0100)]
strtoumax tests: Enhance tests.

* tests/test-strtoumax.c (main): Add tests for large values.

12 years agostrtoimax: Work around AIX 5.1 bug.
Bruno Haible [Thu, 5 Jan 2012 17:47:38 +0000 (18:47 +0100)]
strtoimax: Work around AIX 5.1 bug.

* lib/inttypes.in.h (strtoimax): Allow overriding the system's
definition.
* m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
Set HAVE_STRTOIMAX.
* m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
REPLACE_STRTOIMAX.
* modules/inttypes-incomplete (Makefile.am): Substitute
REPLACE_STRTOIMAX.
* modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
(configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
(Depends-on): Update conditions.
* tests/test-strtoimax.c (main): Add tests for large values.
* doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.

12 years agointtypes: Modernize.
Bruno Haible [Thu, 5 Jan 2012 17:42:08 +0000 (18:42 +0100)]
inttypes: Modernize.

* lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
* modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
(Makefile.am): Update inttypes.h rule.

12 years agoinit.sh: don't waste a subshell just to redirect stderr
Jim Meyering [Thu, 5 Jan 2012 15:45:50 +0000 (16:45 +0100)]
init.sh: don't waste a subshell just to redirect stderr

* tests/init.sh: In testing for diff -u and diff -c, use a
stderr-redirecting exec inside `...` rather than a subshell.

12 years agotest-init.sh: avoid failure on HP-UX 11.00
Jim Meyering [Thu, 5 Jan 2012 15:43:04 +0000 (16:43 +0100)]
test-init.sh: avoid failure on HP-UX 11.00

* tests/test-init.sh: Skip "diff -u"-comparing step when compare
resolves to diff -c or cmp.  Reported by Bruno Haible.

12 years agoTests for module 'strtoull'.
Bruno Haible [Thu, 5 Jan 2012 16:29:33 +0000 (17:29 +0100)]
Tests for module 'strtoull'.

* modules/strtoull-tests: New file.
* tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.

12 years agoTests for module 'strtoll'.
Bruno Haible [Thu, 5 Jan 2012 16:29:03 +0000 (17:29 +0100)]
Tests for module 'strtoll'.

* modules/strtoll-tests: New file.
* tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.

12 years agoTests for module 'strtoul'.
Bruno Haible [Thu, 5 Jan 2012 16:28:29 +0000 (17:28 +0100)]
Tests for module 'strtoul'.

* modules/strtoul-tests: New file.
* tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.

12 years agoTests for module 'strtol'.
Bruno Haible [Thu, 5 Jan 2012 16:27:59 +0000 (17:27 +0100)]
Tests for module 'strtol'.

* modules/strtol-tests: New file.
* tests/test-strtol.c: New file, based on tests/test-strtoimax.c.

12 years agoupdate from texinfo
Karl Berry [Thu, 5 Jan 2012 15:20:01 +0000 (07:20 -0800)]
update from texinfo

12 years agoautoupdate
Karl Berry [Thu, 5 Jan 2012 15:19:28 +0000 (07:19 -0800)]
autoupdate

12 years agotest-init.sh: accommodate Solaris 5.10's different diff -u output
Jim Meyering [Wed, 4 Jan 2012 19:19:37 +0000 (20:19 +0100)]
test-init.sh: accommodate Solaris 5.10's different diff -u output

* tests/test-init.sh: Also exempt @@ lines from the comparison
of diff output, since Solaris 5.10 and GNU diff formats differ.
Reported by Stefano Lattarini.

12 years agotest-posixtm: don't assume signed integer wraparound
Paul Eggert [Thu, 5 Jan 2012 00:04:38 +0000 (16:04 -0800)]
test-posixtm: don't assume signed integer wraparound

* tests/test-posixtm.c (main): Don't assume wraparound semantics
after signed integer overflow.  Inspired by (though it may not
fix) Bruno Haible's bug report in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.

12 years agoSpell out "Windows 9x" and "Windows XP".
Paul Eggert [Wed, 4 Jan 2012 17:33:32 +0000 (09:33 -0800)]
Spell out "Windows 9x" and "Windows XP".

* lib/poll.c, lib/select.c: In comments, replace "Win9x" with
"Windows 9x" and "WinXP" with "Windows XP".

12 years agotest-vc-list-files-cvs.sh: remove obsolete comment
Jim Meyering [Wed, 4 Jan 2012 16:54:57 +0000 (17:54 +0100)]
test-vc-list-files-cvs.sh: remove obsolete comment

* tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
double exit.  Now that's all encapsulated via skip_ and Exit.

12 years agoautoupdate
Karl Berry [Wed, 4 Jan 2012 14:05:53 +0000 (06:05 -0800)]
autoupdate

12 years agoupdate from texinfo
Karl Berry [Wed, 4 Jan 2012 14:01:22 +0000 (06:01 -0800)]
update from texinfo

12 years agoTalk about "native Windows API", not "Win32".
Bruno Haible [Wed, 4 Jan 2012 13:31:33 +0000 (14:31 +0100)]
Talk about "native Windows API", not "Win32".

* lib/classpath.c: Update comments to mention native Windows.
* lib/csharpexec.c: Likewise.
* lib/dup2.c: Likewise.
* lib/error.c: Likewise.
* lib/fcntl.c: Likewise.
* lib/filename.h: Likewise.
* lib/findprog.c: Likewise.
* lib/get-rusage-as.c: Likewise.
* lib/get-rusage-data.c: Likewise.
* lib/getpagesize.c: Likewise.
* lib/javaexec.c: Likewise.
* lib/msvc-inval.c: Likewise.
* lib/msvc-nothrow.c: Likewise.
* lib/nanosleep.c: Likewise.
* lib/nonblocking.c: Likewise.
* lib/printf-parse.c: Likewise.
* lib/setlocale.c: Likewise.
* lib/sigaction.c: Likewise.
* lib/strerror_r.c: Likewise.
* lib/tmpdir.c: Likewise.
* lib/vasnprintf.c: Likewise.
* lib/w32spawn.h: Likewise.
* lib/waitpid.c: Likewise.
* lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
* m4/locale-ar.m4: Likewise.
* m4/locale-fr.m4: Likewise.
* m4/locale-ja.m4: Likewise.
* m4/locale-tr.m4: Likewise.
* m4/locale-zh.m4: Likewise.
* m4/printf.m4: Likewise.
* tests/test-cloexec.c: Likewise.
* tests/test-copy-acl.sh: Likewise.
* tests/test-copy-file.sh: Likewise.
* tests/test-file-has-acl.sh: Likewise.
* tests/test-set-mode-acl.sh: Likewise.
* tests/test-dup-safer.c: Likewise.
* tests/test-dup2.c: Likewise.
* tests/test-dup3.c: Likewise.
* tests/test-fcntl.c: Likewise.
* tests/test-nonblocking-pipe.h: Likewise.
* tests/test-nonblocking-socket.h: Likewise.
* tests/test-pipe.c: Likewise.
* tests/test-pipe2.c: Likewise.
* tests/test-spawn-pipe-child.c: Likewise.
* doc/acl-resources.txt: Likewise.
* lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
* tests/test-poll.c (WINDOWS_NATIVE): Likewise.
* tests/test-select.h (WINDOWS_NATIVE): Likewise.
* lib/localcharset.c: Update comments to mention native Windows.
(WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
* lib/localename.c: Likewise.
* lib/progreloc.c: Likewise.
* lib/relocatable.c: Likewise.
* lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
(windows_compute_revents): Renamed from win32_compute_revents.
(windows_compute_revents_socket): Renamed from
win32_compute_revents_socket.
* lib/select.c: Update comments to mention native Windows.
(windows_poll_handle): Renamed from win32_poll_handle.
* m4/threadlib.m4: Update comments to mention native Windows.
(gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
--enable-threads=windows instead of --enable-threads=win32. Set
USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
* lib/glthread/lock.h: Update comments to mention native Windows.
(USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
* lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
USE_WIN32_THREADS.
* lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
* lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
* tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
* tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
* tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
(TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
* tests/test-tls.c: Likewise.

Rationale:
Microsoft renamed the "Win32 API" to "Windows API", as it is available
on both 32-bit and 64-bit Windows systems.
But in gnulib, we treat Cygwin like a Unix platform, therefore the main
line of distinction is between "native Windows" on one side and Unix/
POSIX systems on the other side. More details in
<https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
Suggested by Paul Eggert.

12 years agoisatty: Support for MSVC 9.
Bruno Haible [Tue, 3 Jan 2012 12:52:36 +0000 (13:52 +0100)]
isatty: Support for MSVC 9.

* doc/posix-functions/isatty.texi: Mention the MSVC problem.
* lib/isatty.c: Include <errno.h>, msvc-inval.h.
(_isatty_nothrow): New function.
(isatty): Use it instead of _isatty.
(IsConsoleHandle): Add comment, from Paolo Bonzini.
* lib/poll.c (IsConsoleHandle): Likewise.
* lib/select.c (IsConsoleHandle): Likewise.
* m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
(gl_PREREQ_ISATTY): New macro.
* modules/isatty (Depends-on): Add msvc-inval.
(configure.ac): Invoke gl_PREREQ_ISATTY.

12 years agomaint.mk: remove temporary transition aid from over 1.5 years ago
Jim Meyering [Tue, 3 Jan 2012 10:35:43 +0000 (11:35 +0100)]
maint.mk: remove temporary transition aid from over 1.5 years ago

* top/maint.mk (_prohibit_regexp): Remove definition whose sole
purpose was to aid in the transition (avoiding silent malfunction)
from that old name to the new _sc_search_regexp.  This shim was
added by commit 219c504b.

12 years agoinit.sh: do not try to accommodate compare arguments starting with "-"
Jim Meyering [Tue, 3 Jan 2012 07:21:09 +0000 (08:21 +0100)]
init.sh: do not try to accommodate compare arguments starting with "-"

* tests/init.sh (compare_dev_null_): Do not try to accommodate
compare arguments that start with "-".  Besides, we do not worry
about this when invoking diff or cmp; why start now with sed?
Using "--" to separate options from argument would trigger sed
failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.

12 years agoEnhance tests for module 'isatty'.
Bruno Haible [Tue, 3 Jan 2012 02:56:16 +0000 (03:56 +0100)]
Enhance tests for module 'isatty'.

* modules/isatty-tests (Depends-on): Add pipe-posix.
* tests/test-isatty.c: Include <fcntl.h>.
(DEV_NULL): New macro.
(main): Test the resut of isatty() also on regular files, pipes, and
/dev/null.

12 years agoNew module 'isatty'.
Bruno Haible [Tue, 3 Jan 2012 02:54:08 +0000 (03:54 +0100)]
New module 'isatty'.

* lib/unistd.in.h (isatty): New declaration.
* lib/isatty.c: New file, based on an idea of
Bastien Roucariès <roucaries.bastien@gmail.com>.
* m4/isatty.m4: New file.
* m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
(gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
* modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
REPLACE_ISATTY.
* modules/isatty: New file.
* doc/posix-functions/isatty.texi: Mention the new module.
Suggested by Paolo Bonzini.

12 years agocanonicalize: Tweak 2011-12-29 commit.
Bruno Haible [Tue, 3 Jan 2012 00:08:24 +0000 (01:08 +0100)]
canonicalize: Tweak 2011-12-29 commit.

* lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
* lib/canonicalize.h (canonicalize_filename_mode): Update specification.

12 years agogitlog-to-changelog: describe input syntax in --help output
Jim Meyering [Mon, 2 Jan 2012 14:53:06 +0000 (15:53 +0100)]
gitlog-to-changelog: describe input syntax in --help output

* build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.

12 years agogitlog-to-changelog: fix typo in --help: show backslash before email @
Jim Meyering [Mon, 2 Jan 2012 09:59:17 +0000 (10:59 +0100)]
gitlog-to-changelog: fix typo in --help: show backslash before email @

* build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
in sources, but not in actual output.

12 years agogitlog-to-changelog: don't malfunction when name contains %-directive
Jim Meyering [Fri, 30 Dec 2011 18:00:49 +0000 (19:00 +0100)]
gitlog-to-changelog: don't malfunction when name contains %-directive

* build-aux/gitlog-to-changelog (main): Don't let a %-directive
in a name string cause trouble.  E.g., with a user name of "%s",
gitlog-to-changelog would fail with "Missing argument in sprintf at..."

12 years agogitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
Gary V. Vaughan [Fri, 30 Dec 2011 17:47:55 +0000 (18:47 +0100)]
gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)

* build-aux/gitlog-to-changelog (main): Map the string, at beginning
of line in a git commit log, "Copyright-paperwork-exempt: yes", to
the "  (tiny change)" notation that is appended to the standard
ChangeLog "date  name  email" header line.

12 years agotest-framework-sh: init.sh: fix "make dist" failure
Jim Meyering [Sun, 1 Jan 2012 16:51:36 +0000 (17:51 +0100)]
test-framework-sh: init.sh: fix "make dist" failure

When using gnulib-tool's --with-tests option and any module that
depends on test-framework-sh, "make dist" would fail due to the
lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
in the gltests directory, and not in the gllib/ directory.
One way to work around that is to move the EXTRA_DIST += init.sh
from the primary module to the -tests one:
* modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
* modules/test-framework-sh (Makefile.am): ...not here.
Reported by Tom G. Christensen in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519

12 years agoautoupdate
Karl Berry [Sun, 1 Jan 2012 16:45:03 +0000 (08:45 -0800)]
autoupdate