gnulib.git
14 years agoautoupdate
Karl Berry [Wed, 19 Aug 2009 20:04:16 +0000 (13:04 -0700)]
autoupdate

14 years agopopen-safer: prevent popen from clobbering std descriptors
Eric Blake [Wed, 19 Aug 2009 16:02:19 +0000 (10:02 -0600)]
popen-safer: prevent popen from clobbering std descriptors

* modules/popen-safer: New file.
* lib/popen-safer.c: Likewise.
* m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
* lib/stdio--.h (popen): Provide override.
* lib/stdio-safer.h (popen_safer): Provide declaration.
* tests/test-popen.c (includes): Partially test this.
* modules/popen-safer-tests: New file, for more tests.
* tests/test-popen-safer.c: Likewise.
* MODULES.html.sh (file stream based Input/Output): Mention it.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotests: test some of the *-safer modules
Eric Blake [Wed, 19 Aug 2009 15:54:54 +0000 (09:54 -0600)]
tests: test some of the *-safer modules

* modules/fopen-safer (Depends-on): Add fopen.
* modules/fcntl-safer (Depends-on): Add fcntl.
* modules/stdlib-safer (Depends-on): Add stdlib.
(configure.ac): Set indicator.
* modules/unistd-safer (configure.ac): Likewise.
* modules/tmpfile-safer (configure.ac): Likewise.
(Depends-on): Add tmpfile.
* lib/stdio--.h (fopen, tmpfile): Don't override unless module is
active.
* tests/test-fopen.c (includes): Test safer versions when they are
in use.
* tests/test-open.c (includes): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agopopen: fix cygwin 1.5 bug when stdin closed
Eric Blake [Wed, 19 Aug 2009 13:15:54 +0000 (07:15 -0600)]
popen: fix cygwin 1.5 bug when stdin closed

* doc/posix-functions/popen.texi (popen): Document cygwin bugs.
* modules/popen: New file.
* modules/popen-tests: Likewise.
* tests/test-popen.c: Likewise.
* m4/popen.m4: Likewise.
* lib/popen.c: Likewise.
* lib/stdio.in.h (popen): New declaration.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
* modules/stdio (Makefile.am): Likewise.
* MODULES.html.sh (systems lacking POSIX:2008): Mention it.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomaint.mk: give full control over update-copyright exclusions
Joel E. Denny [Tue, 18 Aug 2009 01:41:57 +0000 (21:41 -0400)]
maint.mk: give full control over update-copyright exclusions

* top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
(update-copyright): Don't force inclusion of top-level
ChangeLog.  Don't force exclusion of all COPYING files, but make
them the default exclusion instead.

14 years agoautoupdate
Karl Berry [Mon, 17 Aug 2009 13:51:21 +0000 (06:51 -0700)]
autoupdate

14 years agoAvoid test failures on Solaris 10.
Bruno Haible [Sun, 16 Aug 2009 21:00:33 +0000 (23:00 +0200)]
Avoid test failures on Solaris 10.

14 years agoFix test failures on Solaris 10.
Bruno Haible [Sun, 16 Aug 2009 20:40:51 +0000 (22:40 +0200)]
Fix test failures on Solaris 10.

14 years agoupdate from texinfo
Karl Berry [Sun, 16 Aug 2009 16:20:30 +0000 (09:20 -0700)]
update from texinfo

14 years agofpurge: fix previous commits
Eric Blake [Sun, 16 Aug 2009 14:59:54 +0000 (08:59 -0600)]
fpurge: fix previous commits

* modules/fpurge (Makefile.am): Make replacement conditional,
partially reverting 2007-04-29 change; missed in previous
attempt.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
is missing.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoClarify fpurge's effect on the file position.
Bruno Haible [Sun, 16 Aug 2009 13:51:23 +0000 (15:51 +0200)]
Clarify fpurge's effect on the file position.

14 years agoTweak last commit.
Bruno Haible [Sun, 16 Aug 2009 12:46:39 +0000 (14:46 +0200)]
Tweak last commit.

14 years agofpurge: don't wrap working cygwin implementation
Eric Blake [Sat, 15 Aug 2009 22:43:58 +0000 (16:43 -0600)]
fpurge: don't wrap working cygwin implementation

* lib/fpurge.c (fpurge): Fix comment typo.
* modules/fpurge (Makefile.am): Make replacement conditional,
partially reverting 2007-04-29 change.
* tests/test-fpurge.c (main): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-update-copyright: skip if perl is insufficient
Eric Blake [Sat, 15 Aug 2009 16:28:30 +0000 (10:28 -0600)]
test-update-copyright: skip if perl is insufficient

* tests/test-update-copyright.sh: Failure to run maintainer tool
should not cause testsuite failure on cygwin 1.5.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agodoc: mention more functions added in cygwin 1.7.0
Eric Blake [Thu, 13 Aug 2009 20:21:43 +0000 (14:21 -0600)]
doc: mention more functions added in cygwin 1.7.0

* doc/posix-headers/limits.texi (limits.h): Update for recent
cygwin additions.
* doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
* doc/posix-functions/wordexp.texi (wordexp): Likewise.
* doc/posix-functions/wordfree.texi (wordfree): Likewise.
* doc/posix-functions/setlocale.texi (setlocale): Likewise.
* doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomaint.mk: simplify update-copyright rule
Eric Blake [Fri, 14 Aug 2009 15:40:53 +0000 (09:40 -0600)]
maint.mk: simplify update-copyright rule

* top/maint.mk (update-copyright-local): Delete, and document how
to do it in cfg.mk instead.
(update-copyright-exclude-regexp): Delete, and document how to do
it in .x-update-copyright instead.
(update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
exclude ChangeLog.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoUndo invalid optimization in last commit.
Bruno Haible [Sat, 15 Aug 2009 00:38:33 +0000 (02:38 +0200)]
Undo invalid optimization in last commit.

14 years agomaint.mk: support update-copyright-env
Joel E. Denny [Fri, 14 Aug 2009 19:26:20 +0000 (15:26 -0400)]
maint.mk: support update-copyright-env

* top/maint.mk (update-copyright-env): Define place-holder.
(update-copyright): Expand $(update-copyright-env) before
invoking update-copyright.

14 years agoupdate-copyright: implement forced reformatting
Joel E. Denny [Fri, 14 Aug 2009 17:12:54 +0000 (13:12 -0400)]
update-copyright: implement forced reformatting

* build-aux/update-copyright: Implement and document
UPDATE_COPYRIGHT_FORCE.
* tests/test-update-copyright.sh: Test it.

14 years agostddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake [Wed, 12 Aug 2009 16:23:03 +0000 (10:23 -0600)]
stddef: fix NetBSD 5.0 NULL bug, rather than working around it

* tests/test-locale.c: Revert previous patch related to NULL.
* tests/test-stdio.c: Likewise.
* tests/test-stdlib.c: Likewise.
* tests/test-string.c: Likewise.
* tests/test-unistd.c: Likewise.
* modules/time-tests (Depends-on): Add verify.
* modules/wchar-tests (Depends-on): Likewise.
* tests/test-time.c: Test for NULL compliance.
* tests/test-wchar.c: Likewise.
* modules/locale (Depends-on): Add stddef.
* modules/stdio (Depends-on): Likewise.
* modules/stdlib (Depends-on): Likewise.
* modules/string (Depends-on): Likewise.
* modules/time (Depends-on): Likewise.
* modules/unistd (Depends-on): Likewise.
* modules/wchar (Depends-on): Likewise.
* lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
* lib/stdlib.in.h (includes): Likewise.
* lib/string.in.h (includes): Likewise.
* lib/time.in.h (includes): Likewise.
* lib/unistd.in.h (includes): Likewise.
* m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
replaced.
* m4/wchar.m4 (gl_WCHAR_H): Likewise.
* m4/stddef_h.m4: New file.
* modules/stddef: Likewise.
* lib/stddef.in.h: Likewise.
* modules/stddef-tests: Likewise.
* tests/test-stddef.c: Likewise.
* MODULES.html.sh (Basic types <stddef.h>): Mention new module.
* doc/posix-headers/stddef.texi (stddef.h): Document the bug.
* doc/posix-headers/locale.texi (locale.h): Likewise.
* doc/posix-headers/stdio.texi (stdio.h): Likewise.
* doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
* doc/posix-headers/string.texi (string.h): Likewise.
* doc/posix-headers/time.texi (time.h): Likewise.
* doc/posix-headers/unistd.texi (unistd.h): Likewise.
* doc/posix-headers/wchar.texi (wchar.h): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoRevert "Avoid compilation error on NetBSD 5.0."
Eric Blake [Wed, 12 Aug 2009 14:31:14 +0000 (08:31 -0600)]
Revert "Avoid compilation error on NetBSD 5.0."

This reverts commit b8521e81e705f88784e7a6709bcd6c5a3ea440e0.

14 years agodoc: improve git diff of texinfo files
Eric Blake [Thu, 13 Aug 2009 13:15:28 +0000 (07:15 -0600)]
doc: improve git diff of texinfo files

* .gitattributes: Add rule for *.texi files, with hint on how to
use it.
Copied from m4, and based on a report by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoDisable multithread support by default on Cygwin 1.5.x for real.
Bruno Haible [Fri, 14 Aug 2009 10:01:12 +0000 (12:01 +0200)]
Disable multithread support by default on Cygwin 1.5.x for real.

14 years agoupdate-copyright: much ado about intervals
Joel E. Denny [Fri, 14 Aug 2009 05:10:08 +0000 (01:10 -0400)]
update-copyright: much ado about intervals

* build-aux/update-copyright: Implement and document
UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
of copyright year intervals.
Also, document UPDATE_COPYRIGHT_YEAR.
* tests/test-update-copyright.sh: Test it.

14 years agoupdate-copyright: convert 2-digit to 4-digit years
Joel E. Denny [Fri, 14 Aug 2009 02:40:34 +0000 (22:40 -0400)]
update-copyright: convert 2-digit to 4-digit years

* build-aux/update-copyright: Implement and document.
* tests/test-update-copyright.sh: Update.

14 years agotest-exclude: avoid coreutils "make check" failure
Jim Meyering [Fri, 14 Aug 2009 06:17:46 +0000 (08:17 +0200)]
test-exclude: avoid coreutils "make check" failure

* tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
just as in test-argmatch.c.

14 years agotest-dup2: fix bad assumption
Eric Blake [Thu, 13 Aug 2009 18:11:47 +0000 (12:11 -0600)]
test-dup2: fix bad assumption

* tests/test-dup2.c (main): Tolerate leaked fds from environment.
Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-version-etc: fix CRLF portability issue
Eric Blake [Thu, 13 Aug 2009 17:22:26 +0000 (11:22 -0600)]
test-version-etc: fix CRLF portability issue

* tests/test-version-etc.sh: Use tr, not sed, as not all sed
recognize \r.
* tests/test-argp-version-etc-1.sh: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agogetopt: update client modules
Eric Blake [Thu, 13 Aug 2009 17:42:00 +0000 (11:42 -0600)]
getopt: update client modules

* modules/argp (Depends-on): Use getopt-gnu.
* modules/git-merge-changelog (Depends-on): Likewise.
* modules/long-options (Depends-on): Likewise.
* modules/xstrtol (Depends-on): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-version-etc, test-argp-version-etc: Fix CRLF issue. Reduce forks.
Simon Josefsson [Thu, 13 Aug 2009 11:22:41 +0000 (13:22 +0200)]
test-version-etc, test-argp-version-etc: Fix CRLF issue.  Reduce forks.

14 years agoversion-etc-test: Make it work imported into projects.
Simon Josefsson [Thu, 13 Aug 2009 11:10:21 +0000 (13:10 +0200)]
version-etc-test: Make it work imported into projects.

14 years agoTests for modules 'getopt-posix', 'getopt-gnu'.
Bruno Haible [Wed, 12 Aug 2009 23:25:48 +0000 (01:25 +0200)]
Tests for modules 'getopt-posix', 'getopt-gnu'.

14 years agoNew modules 'getopt-posix', 'getopt-gnu'.
Bruno Haible [Wed, 12 Aug 2009 23:23:35 +0000 (01:23 +0200)]
New modules 'getopt-posix', 'getopt-gnu'.

14 years agoEnsure that optarg etc. get declared by <unistd.h>.
Bruno Haible [Wed, 12 Aug 2009 23:09:50 +0000 (01:09 +0200)]
Ensure that optarg etc. get declared by <unistd.h>.

14 years agoAvoid test link errors.
Bruno Haible [Wed, 12 Aug 2009 21:34:12 +0000 (23:34 +0200)]
Avoid test link errors.

14 years agoRestore the gl_GETOPT_SUBSTITUTE macro, under a new name.
Bruno Haible [Wed, 12 Aug 2009 20:18:21 +0000 (22:18 +0200)]
Restore the gl_GETOPT_SUBSTITUTE macro, under a new name.

14 years agoPut the recent ChangeLog entries in order.
Bruno Haible [Wed, 12 Aug 2009 18:55:31 +0000 (20:55 +0200)]
Put the recent ChangeLog entries in order.

14 years agoUpdate ChangeLog
Sergey Poznyakoff [Wed, 12 Aug 2009 18:47:56 +0000 (21:47 +0300)]
Update ChangeLog

14 years agoReorder macros.
Bruno Haible [Wed, 12 Aug 2009 17:37:21 +0000 (19:37 +0200)]
Reorder macros.

14 years agoMinor improvement in gitlog-to-changelog
Sergey Poznyakoff [Wed, 12 Aug 2009 16:48:51 +0000 (19:48 +0300)]
Minor improvement in gitlog-to-changelog

* build-aux/gitlog-to-changelog: New option `--format' makes
output format string configurable.

14 years agoOptimize exclude: use hash tables for non-wildcard patterns.
Sergey Poznyakoff [Wed, 12 Aug 2009 16:03:07 +0000 (19:03 +0300)]
Optimize exclude: use hash tables for non-wildcard patterns.

* lib/exclude.c: Include hash.h and mbuiter.h
(struct exclude_pattern, exclude_segment): New data types.
(struct exclude): Rewrite.
(fnmatch_pattern_has_wildcards): New function.
(new_exclude_segment, free_exclude_segment): New functions.
(excluded_file_pattern_p, excluded_file_name_p): New functions.
(excluded_file_name, add_exclude): Rewrite using new struct exclude.
* lib/exclude.h (is_fnmatch_pattern): New prototype.
* modules/exclude: Depend on hash and mbuiter.

* modules/exclude-tests: New file.
* tests/test-exclude.c: New file.
* tests/test-exclude1.sh: New file.
* tests/test-exclude2.sh: New file.
* tests/test-exclude3.sh: New file.
* tests/test-exclude4.sh: New file.
* tests/test-exclude5.sh: New file.
* tests/test-exclude6.sh: New file.
* tests/test-exclude7.sh: New file.

14 years agoEnsure that getopt() gets declared by <unistd.h>.
Bruno Haible [Wed, 12 Aug 2009 15:25:09 +0000 (17:25 +0200)]
Ensure that getopt() gets declared by <unistd.h>.

14 years agoClarify logic; Separate gl_replace_getopt and GETOPT_H.
Bruno Haible [Wed, 12 Aug 2009 15:18:53 +0000 (17:18 +0200)]
Clarify logic; Separate gl_replace_getopt and GETOPT_H.

14 years agoAdd comments.
Bruno Haible [Wed, 12 Aug 2009 15:10:21 +0000 (17:10 +0200)]
Add comments.

14 years agoDisable multithread support by default on Cygwin 1.5.x.
Bruno Haible [Wed, 12 Aug 2009 14:25:16 +0000 (16:25 +0200)]
Disable multithread support by default on Cygwin 1.5.x.

14 years agoAvoid compilation error on NetBSD 5.0.
Bruno Haible [Tue, 11 Aug 2009 19:06:43 +0000 (21:06 +0200)]
Avoid compilation error on NetBSD 5.0.

14 years agoMost tests don't need module 'close' any more.
Bruno Haible [Tue, 11 Aug 2009 10:52:19 +0000 (12:52 +0200)]
Most tests don't need module 'close' any more.

14 years agoUndefine DCHAR_SET after use.
Bruno Haible [Mon, 10 Aug 2009 23:06:54 +0000 (01:06 +0200)]
Undefine DCHAR_SET after use.

14 years agoFix a gcc warning.
Bruno Haible [Mon, 10 Aug 2009 23:03:08 +0000 (01:03 +0200)]
Fix a gcc warning.

14 years agoDon't optimize AC_LIBOBJs, as they may appear in different contexts.
Bruno Haible [Mon, 10 Aug 2009 21:54:09 +0000 (23:54 +0200)]
Don't optimize AC_LIBOBJs, as they may appear in different contexts.

14 years agoMake it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible [Mon, 10 Aug 2009 21:00:13 +0000 (23:00 +0200)]
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.

14 years agoAdd comment.
Bruno Haible [Mon, 10 Aug 2009 20:53:54 +0000 (22:53 +0200)]
Add comment.

14 years agoTypo in comment.
Bruno Haible [Mon, 10 Aug 2009 20:38:22 +0000 (22:38 +0200)]
Typo in comment.

14 years agoAvoid collision between gnulib wrapper and libintl wrapper.
Bruno Haible [Mon, 10 Aug 2009 11:29:20 +0000 (13:29 +0200)]
Avoid collision between gnulib wrapper and libintl wrapper.

14 years agoMake <sys/select.h> really self-contained, also on Solaris 10.
Bruno Haible [Sun, 9 Aug 2009 22:26:10 +0000 (00:26 +0200)]
Make <sys/select.h> really self-contained, also on Solaris 10.

14 years agoAvoid warnings from 'aclocal' when AM_XGETTEXT_OPTION is not defined.
Bruno Haible [Sun, 9 Aug 2009 17:58:07 +0000 (19:58 +0200)]
Avoid warnings from 'aclocal' when AM_XGETTEXT_OPTION is not defined.

14 years agoAvoid compilation error in C++ mode.
Bruno Haible [Sun, 9 Aug 2009 07:15:28 +0000 (09:15 +0200)]
Avoid compilation error in C++ mode.

14 years agoDefine HOST_NAME_MAX also for the various Unix platforms.
Bruno Haible [Sat, 8 Aug 2009 09:18:41 +0000 (11:18 +0200)]
Define HOST_NAME_MAX also for the various Unix platforms.

14 years agoselinux-at: fix typo in a comment
Jim Meyering [Fri, 7 Aug 2009 21:22:51 +0000 (23:22 +0200)]
selinux-at: fix typo in a comment

* lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
Spotted by Paolo Bonzini.

14 years agoselinux-at: remove redundant m4 code, add documentation
Jim Meyering [Fri, 7 Aug 2009 08:57:17 +0000 (10:57 +0200)]
selinux-at: remove redundant m4 code, add documentation

* modules/selinux-at (configure.ac): Remove redundant code.
LIB_SELINUX is already set via the dependent module, selinux-h.
(Include): Add quotes around selinux-at.h.
* lib/selinux-at.h: Add documentation.
Reported by Bruno Haible in
http://marc.info/?l=gnulib-bug&m=124958988300749

14 years agoAvoid link error on MacOS X 10.3 and 10.4.
Bruno Haible [Fri, 7 Aug 2009 07:06:45 +0000 (09:06 +0200)]
Avoid link error on MacOS X 10.3 and 10.4.

14 years agotest-version-etc.sh: Use $EXEEXT.
Simon Josefsson [Fri, 7 Aug 2009 00:23:00 +0000 (02:23 +0200)]
test-version-etc.sh: Use $EXEEXT.

14 years agoupdate-copyright: update documentation to point to maint.mk
Joel E. Denny [Thu, 6 Aug 2009 14:22:32 +0000 (10:22 -0400)]
update-copyright: update documentation to point to maint.mk

* build-aux/update-copyright: Here.

14 years agomaint.mk: support update-copyright-local
Jim Meyering [Thu, 6 Aug 2009 07:25:05 +0000 (09:25 +0200)]
maint.mk: support update-copyright-local

* top/maint.mk (update-copyright-local): Define place-holder.
(update-copyright): Depend on $(update-copyright-local).

14 years agoselinux-at: new module
Jim Meyering [Thu, 6 Aug 2009 12:15:23 +0000 (14:15 +0200)]
selinux-at: new module

Initially written for coreutils, this module will soon be
used by findutils, too.
* MODULES.html.sh [Misc]: Add selinux-at.
* lib/selinux-at.h: New file, from coreutils.
* lib/selinux-at.c: Likewise.
* modules/selinux-at: Likewise.
(License): Change from LGPL to GPL, since it depends
on the GPL'd openat module.

14 years agodoc: update README
Jim Meyering [Thu, 6 Aug 2009 10:33:21 +0000 (12:33 +0200)]
doc: update README

* README: Remove references to cogito.
Remove cvs-repo-updating instructions from 2007.
Don't imply that CVS is better if you have limited disk space.

14 years agoupdate-copyright: support C-style comments
Joel E. Denny [Thu, 6 Aug 2009 03:30:14 +0000 (23:30 -0400)]
update-copyright: support C-style comments

* build-aux/update-copyright: Implement and document.
* tests/test-update-copyright.sh: Test.

14 years agoupdate-copyright: support omitted "(C)"
Joel E. Denny [Thu, 6 Aug 2009 00:51:27 +0000 (20:51 -0400)]
update-copyright: support omitted "(C)"

* build-aux/update-copyright: Implement and document.  Also,
allow variable whitespace before "(C)".
* tests/test-update-copyright.sh: Test.

14 years agoupdate-copyright: don't trip on non-FSF copyright statements
Joel E. Denny [Wed, 5 Aug 2009 20:52:24 +0000 (16:52 -0400)]
update-copyright: don't trip on non-FSF copyright statements

* build-aux/update-copyright: Fix so that the first correctly
formatted FSF copyright statement is recognized no matter what
appears before it.  Update documentation.
* tests/test-update-copyright.sh: Test that.

14 years agoupdate-copyright: clean up code a little
Joel E. Denny [Wed, 5 Aug 2009 19:31:15 +0000 (15:31 -0400)]
update-copyright: clean up code a little

* build-aux/update-copyright: Append "_re" to the name of any
variable holding a regular expression.
Replace "old" and "new" with "stmt" in variable names.
Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
handled correctly.
Format code more consistently.

14 years agoupdate-copyright-tests: improve portability
Joel E. Denny [Wed, 5 Aug 2009 14:03:10 +0000 (10:03 -0400)]
update-copyright-tests: improve portability

* tests/test-update-copyright.sh: Use cmp if diff cannot handle
-u or /dev/null.  Suggested by Jim Meyering and Eric Blake.

14 years agoupdate-copyright: support @copyright{} and &copy;
Joel E. Denny [Tue, 4 Aug 2009 03:06:24 +0000 (23:06 -0400)]
update-copyright: support @copyright{} and &copy;

* build-aux/update-copyright: Implement and document.
* tests/test-update-copyright.sh: Test.

14 years agoupdate-copyright-tests: correctly test EOL=\r\n handling
Jim Meyering [Tue, 4 Aug 2009 14:25:12 +0000 (16:25 +0200)]
update-copyright-tests: correctly test EOL=\r\n handling

* tests/test-update-copyright.sh: Put \r at the end of some lines
for the dos-eol tests.  Based on a patch by Joel E. Denny.

14 years agomaint.mk: make update-copyright exclusion list more configurable
Jim Meyering [Tue, 4 Aug 2009 09:17:08 +0000 (11:17 +0200)]
maint.mk: make update-copyright exclusion list more configurable

* top/maint.mk (update-copyright): Default to excluding COPYING,
but allow an override, in case someone does want to update that file.

14 years agomaint.mk: don't update copyright date in COPYING
Jim Meyering [Tue, 4 Aug 2009 08:44:05 +0000 (10:44 +0200)]
maint.mk: don't update copyright date in COPYING

* top/maint.mk (update-copyright): Exclude COPYING.

14 years agomaint.mk: add a copyright-updating rule
Jim Meyering [Tue, 4 Aug 2009 07:53:04 +0000 (09:53 +0200)]
maint.mk: add a copyright-updating rule

* top/maint.mk (update-copyright): New rule.
Derived from coreutils/Makefile.am.

14 years agoupdate-copyright: rename some variables
Jim Meyering [Tue, 4 Aug 2009 07:25:12 +0000 (09:25 +0200)]
update-copyright: rename some variables

* build-aux/update-copyright: Rename a few variables for clarity.
Tweak syntax.  List Joel E. Denny as coauthor.

14 years agoupdate-copyright: fix bug for 2-digit last year and add tests
Joel E. Denny [Tue, 4 Aug 2009 00:05:50 +0000 (20:05 -0400)]
update-copyright: fix bug for 2-digit last year and add tests

* build-aux/update-copyright: Fix bug.
Use UPDATE_COPYRIGHT_YEAR from environment as current year if
specified.
* modules/update-copyright-tests: New
* tests/test-update-copyright.sh: New.

14 years agoupdate-copyright: handle leading tabs in line prefix
Joel E. Denny [Fri, 31 Jul 2009 13:38:05 +0000 (09:38 -0400)]
update-copyright: handle leading tabs in line prefix

* build-aux/update-copyright: Count leading tabs as 8 spaces
when computing margin.  This helps with the formatting of
ChangeLogs, for example.
Fix documentation a little.

14 years agoupdate-copyright: support EOL=\r\n
Joel E. Denny [Fri, 31 Jul 2009 13:32:30 +0000 (09:32 -0400)]
update-copyright: support EOL=\r\n

* build-aux/update-copyright: Implement that.

14 years agoupdate-copyright: automatically format copyright statements
Joel E. Denny [Fri, 31 Jul 2009 13:11:53 +0000 (09:11 -0400)]
update-copyright: automatically format copyright statements

* build-aux/update-copyright: Implement that.
Also, be a little more predictable and safer by always failing
when the full copyright format is not perfectly recognized as an
unbroken whole.  Discussed at
<http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
Rewrite documentation.

14 years agoFix displayed message of AM_ICONV with autoconf-2.64.
Bruno Haible [Mon, 3 Aug 2009 21:07:00 +0000 (23:07 +0200)]
Fix displayed message of AM_ICONV with autoconf-2.64.

14 years agoTests for module 'uname'.
Bruno Haible [Sun, 2 Aug 2009 14:52:37 +0000 (16:52 +0200)]
Tests for module 'uname'.

14 years agoNew module 'uname'.
Bruno Haible [Sun, 2 Aug 2009 14:51:49 +0000 (16:51 +0200)]
New module 'uname'.

14 years agoTests for module 'sys_utsname'.
Bruno Haible [Sun, 2 Aug 2009 14:50:32 +0000 (16:50 +0200)]
Tests for module 'sys_utsname'.

14 years agoNew module 'sys_utsname'.
Bruno Haible [Sun, 2 Aug 2009 14:49:23 +0000 (16:49 +0200)]
New module 'sys_utsname'.

14 years agoImplicitly initialize the sockets library.
Bruno Haible [Sun, 2 Aug 2009 14:43:55 +0000 (16:43 +0200)]
Implicitly initialize the sockets library.

14 years agoAllow multiple calls to gl_sockets_startup.
Bruno Haible [Sun, 2 Aug 2009 14:39:07 +0000 (16:39 +0200)]
Allow multiple calls to gl_sockets_startup.

14 years agoFix argp-version-etc-test module.
Simon Josefsson [Mon, 3 Aug 2009 13:58:20 +0000 (15:58 +0200)]
Fix argp-version-etc-test module.

14 years agoFix typo in last commit.
Simon Josefsson [Mon, 3 Aug 2009 07:32:08 +0000 (09:32 +0200)]
Fix typo in last commit.

14 years agoTests for module 'pipe-filter-gi'.
Bruno Haible [Sun, 2 Aug 2009 21:53:25 +0000 (23:53 +0200)]
Tests for module 'pipe-filter-gi'.

14 years agoNew module 'pipe-filter-gi'.
Bruno Haible [Sun, 2 Aug 2009 21:52:05 +0000 (23:52 +0200)]
New module 'pipe-filter-gi'.

14 years agoTests for module 'pipe-filter-ii'.
Bruno Haible [Sun, 2 Aug 2009 21:50:47 +0000 (23:50 +0200)]
Tests for module 'pipe-filter-ii'.

14 years agoNew module 'pipe-filter-ii'.
Bruno Haible [Sun, 2 Aug 2009 21:46:44 +0000 (23:46 +0200)]
New module 'pipe-filter-ii'.

14 years agogc-libgcrypt.c, gc-gnulib.c: Change copyright to FSF.
Simon Josefsson [Sun, 2 Aug 2009 20:23:56 +0000 (22:23 +0200)]
gc-libgcrypt.c, gc-gnulib.c: Change copyright to FSF.

14 years agoFix compilation error on mingw.
Martin Lambers [Sun, 2 Aug 2009 18:57:19 +0000 (20:57 +0200)]
Fix compilation error on mingw.

14 years agoFix compilation error on mingw.
Bruno Haible [Sun, 2 Aug 2009 18:55:40 +0000 (20:55 +0200)]
Fix compilation error on mingw.

14 years agoMake the gethostname test compile again.
Bruno Haible [Sun, 2 Aug 2009 13:29:02 +0000 (15:29 +0200)]
Make the gethostname test compile again.

14 years agoEnsure HOST_NAME_MAX as part of the gethostname module.
Bruno Haible [Sun, 2 Aug 2009 10:24:14 +0000 (12:24 +0200)]
Ensure HOST_NAME_MAX as part of the gethostname module.

14 years agoFix handling of large len argument.
Bruno Haible [Sun, 2 Aug 2009 10:05:11 +0000 (12:05 +0200)]
Fix handling of large len argument.