summaryrefslogtreecommitdiff
path: root/gnulib-tool
Commit message (Collapse)AuthorAgeFilesLines
* gnulib-tool: Addendum to 2011-06-08 commit.Bruno Haible2011-06-131-10/+15
| | | | | * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name and --witness-c-macro have been given, augment AM_CPPFLAGS.
* gnulib-tool: Allow comments in the 'Depends-on' section.Bruno Haible2011-06-131-15/+17
| | | | | | * doc/gnulib.texi (Module description): Mention comment syntax in the Depends-on section. * gnulib-tool (func_get_dependencies): Filter out comment lines.
* gnulib-tool: Better isolation between different gnulib-tool invocations.Bruno Haible2011-06-081-4/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnulib-tool: New option --witness-c-macro. (witness_c_macro): New variable. (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let AM_CPPFLAGS define it as a C macro. (func_emit_tests_Makefile_am): Likewise. (func_import): Store witness_c_macro setting in gnulib-cache.m4 and read it from there. * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through m4_define, not AC_DEFUN. (gl_MODULE_INDICATOR_SET_VARIABLE_AUX, gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros. (gl_MODULE_INDICATOR_SET_VARIABLE): Use them. * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not s|...|...|, to substitute the values of the GNULIB_* module indicator variables. * modules/dirent (Makefile.am): Likewise. * modules/fcntl-h (Makefile.am): Likewise. * modules/iconv-h (Makefile.am): Likewise. * modules/langinfo (Makefile.am): Likewise. * modules/locale (Makefile.am): Likewise. * modules/math (Makefile.am): Likewise. * modules/netdb (Makefile.am): Likewise. * modules/poll-h (Makefile.am): Likewise. * modules/pty (Makefile.am): Likewise. * modules/search (Makefile.am): Likewise. * modules/signal (Makefile.am): Likewise. * modules/spawn (Makefile.am): Likewise. * modules/stdio (Makefile.am): Likewise. * modules/stdlib (Makefile.am): Likewise. * modules/string (Makefile.am): Likewise. * modules/sys_ioctl (Makefile.am): Likewise. * modules/sys_select (Makefile.am): Likewise. * modules/sys_socket (Makefile.am): Likewise. * modules/sys_stat (Makefile.am): Likewise. * modules/sys_times (Makefile.am): Likewise. * modules/sys_utsname (Makefile.am): Likewise. * modules/sys_wait (Makefile.am): Likewise. * modules/termios (Makefile.am): Likewise. * modules/time (Makefile.am): Likewise. * modules/unistd (Makefile.am): Likewise. * modules/wchar (Makefile.am): Likewise.
* gnulib-tool: Fix bug in yesterday's commit.Bruno Haible2011-05-291-2/+1
| | | | | * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs twice.
* Allow multiple gnulib generated include files to be combined.Bruno Haible2011-05-291-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnulib-tool (func_compute_include_guard_prefix): New function. (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also ${gl_include_guard_prefix} references. (func_import, func_create_testdir): Invoke func_compute_include_guard_prefix. * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder. * lib/ctype.in.h: Likewise. * lib/dirent.in.h: Likewise. * lib/errno.in.h: Likewise. * lib/fcntl.in.h: Likewise. * lib/float.in.h: Likewise. * lib/getopt.in.h: Likewise. * lib/iconv.in.h: Likewise. * lib/langinfo.in.h: Likewise. * lib/locale.in.h: Likewise. * lib/math.in.h: Likewise. * lib/netdb.in.h: Likewise. * lib/netinet_in.in.h: Likewise. * lib/poll.in.h: Likewise. * lib/pthread.in.h: Likewise. * lib/pty.in.h: Likewise. * lib/sched.in.h: Likewise. * lib/se-selinux.in.h: Likewise. * lib/search.in.h: Likewise. * lib/signal.in.h: Likewise. * lib/spawn.in.h: Likewise. * lib/stdarg.in.h: Likewise. * lib/stddef.in.h: Likewise. * lib/stdint.in.h: Likewise. * lib/stdio.in.h: Likewise. * lib/stdlib.in.h: Likewise. * lib/string.in.h: Likewise. * lib/strings.in.h: Likewise. * lib/sys_file.in.h: Likewise. * lib/sys_ioctl.in.h: Likewise. * lib/sys_select.in.h: Likewise. * lib/sys_socket.in.h: Likewise. * lib/sys_stat.in.h: Likewise. * lib/sys_time.in.h: Likewise. * lib/sys_times.in.h: Likewise. * lib/sys_uio.in.h: Likewise. * lib/sys_utsname.in.h: Likewise. * lib/sys_wait.in.h: Likewise. * lib/sysexits.in.h: Likewise. * lib/termios.in.h: Likewise. * lib/time.in.h: Likewise. * lib/unistd.in.h: Likewise. * lib/wchar.in.h: Likewise. * lib/wctype.in.h: Likewise. * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@. * modules/ctype (Makefile.am): Likewise. * modules/dirent (Makefile.am): Likewise. * modules/errno (Makefile.am): Likewise. * modules/fcntl-h (Makefile.am): Likewise. * modules/float (Makefile.am): Likewise. * modules/getopt-posix (Makefile.am): Likewise. * modules/iconv-h (Makefile.am): Likewise. * modules/langinfo (Makefile.am): Likewise. * modules/locale (Makefile.am): Likewise. * modules/math (Makefile.am): Likewise. * modules/netdb (Makefile.am): Likewise. * modules/netinet_in (Makefile.am): Likewise. * modules/poll-h (Makefile.am): Likewise. * modules/pthread (Makefile.am): Likewise. * modules/pty (Makefile.am): Likewise. * modules/sched (Makefile.am): Likewise. * modules/search (Makefile.am): Likewise. * modules/selinux-h (Makefile.am): Likewise. * modules/signal (Makefile.am): Likewise. * modules/spawn (Makefile.am): Likewise. * modules/stdarg (Makefile.am): Likewise. * modules/stddef (Makefile.am): Likewise. * modules/stdint (Makefile.am): Likewise. * modules/stdio (Makefile.am): Likewise. * modules/stdlib (Makefile.am): Likewise. * modules/string (Makefile.am): Likewise. * modules/strings (Makefile.am): Likewise. * modules/sys_file (Makefile.am): Likewise. * modules/sys_ioctl (Makefile.am): Likewise. * modules/sys_select (Makefile.am): Likewise. * modules/sys_socket (Makefile.am): Likewise. * modules/sys_stat (Makefile.am): Likewise. * modules/sys_time (Makefile.am): Likewise. * modules/sys_times (Makefile.am): Likewise. * modules/sys_uio (Makefile.am): Likewise. * modules/sys_utsname (Makefile.am): Likewise. * modules/sys_wait (Makefile.am): Likewise. * modules/sysexits (Makefile.am): Likewise. * modules/termios (Makefile.am): Likewise. * modules/time (Makefile.am): Likewise. * modules/unistd (Makefile.am): Likewise. * modules/wchar (Makefile.am): Likewise. * modules/wctype-h (Makefile.am): Likewise. * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
* gnulib-tool: Alternative structure of testdirs, similar to --import.Bruno Haible2011-05-291-187/+357
| | | | | | | | | | | | | | | * gnulib-tool: New option --single-configure. (func_usage): Document it. (single_configure): New variable. (func_modules_transitive_closure_separately, func_modules_transitive_closure_separately, func_determine_use_libtests, func_modules_add_dummy_separately, func_modules_to_filelist_separately): New functions, extracted from func_import. (func_emit_tests_Makefile_am): Handle $single_configure = true case. (func_import): Use the new functions. (func_create_testdir): Set final_modules. Handle $single_configure = true case.
* Finish the conditional dependencies mechanism.Bruno Haible2011-05-281-16/+41
| | | | | | | | | | * gnulib-tool: New option --no-conditional-dependencies. (func_usage): Document it. Don't mark --conditional-dependencies as experimental. (cond_dependencies): The possible values can now be true, false, empty. (func_modules_transitive_closure, func_emit_autoconf_snippets): Update. (func_import): Store setting in gnulib-cache.m4 and read it from there. * doc/gnulib-tool.texi (Conditional dependencies): New section.
* gnulib-tool: fix portability problem with MacOS sedPaul Eggert2011-05-231-2/+6
| | | | | | | A sed command like "/x/{s/a/b/}" is not portable; a newline is needed before the "}". Problem reported by Leo in <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>. * gnulib-tool (sed_dependencies_without_conditions):
* Support for conditional dependencies.Bruno Haible2011-05-031-15/+361
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/gnulib.texi (Module description): Document the syntax of conditional dependencies. * gnulib-tool: New option --conditional-dependencies. (func_usage): Document it. (cond_dependencies): New variable. (func_get_automake_snippet_conditional, func_get_automake_snippet_unconditional): New functions, extracted from func_get_automake_snippet. (func_get_automake_snippet): Use them. (sed_first_32_chars): New variable. (func_module_shellfunc_name): New function. (func_module_shellvar_name): New function. (func_module_conditional_name): New function. (func_uncond_add_module, func_conddep_add_module, func_cond_module_p, func_cond_module_condition): New functions. (func_modules_transitive_closure): Add support for conditional dependencies. (func_emit_lib_Makefile_am): For a conditional module, enclose the conditional automake snippet in an automake conditional. (func_emit_autoconf_snippets): Emit shell functions that contain the code for conditional modules. (func_import, func_create_testdir): Update specification.
* gnulib-tool: Refactor.Bruno Haible2011-05-021-40/+63
| | | | | | * gnulib-tool (func_emit_autoconf_snippet): New function, extracted from func_emit_autoconf_snippets. (func_emit_autoconf_snippets): Use it.
* gnulib-tool: Reduce code duplication.Bruno Haible2011-05-011-68/+64
| | | | | * gnulib-tool (func_emit_autoconf_snippets): New function. (func_import, func_create_testdir): Use it.
* Change gnulib-tool to support NetBSD's joinJ.T. Conklin2011-04-271-1/+1
| | | | | | For backwards compatibility, the 4.4BSD join used by NetBSD supports a "-a" option as if it was "-a 1 -a 2". Unfortunately, this was done in such a way that "-a 1" and "-a 2" need to be passed as "-a1" or "-a2".
* gnulib-tool: remove use of bold display in help screenStefano Lattarini2011-02-241-16/+4
| | | | | | * gnulib-tool (func_usage): Do not use bold display anymore in the help screen. That was just meant to be a temporary emphasis for a backward-incompatible change.
* gnulib-tool: Make copyright notice adjustment more robust.Bruno Haible2011-02-091-0/+17
| | | | | | | | * gnulib-tool (func_import): In sed_transform_main_lib_file, sed_transform_build_aux_file, sed_transform_testsrelated_lib_file, allow a line break to occur after "GNU" in "GNU [Lesser] General Public License". Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
* libposix: Revert the unreviewed part of yesterday's big merge.Bruce Korb2011-02-061-28/+1
| | | | | | | Back out yesterday's big merge from the libposix branch, except for the openat-die.c change that was reviewed and approved by Paul Eggert. Put the ChangeLog entry at the top, to reflect the order of changes in the master branch.
* libposix: Add _HEADERS primaries to posix modules.Bruce Korb2011-02-051-1/+28
| | | | | | Modify gnulib-tool to strip them from generated Makefile.am-s where they are not needed. Also, replace M4 macro prefixes when requested. Finally, omit calls to error() for libposix.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* parse-datetime: better name than get_dateEric Blake2010-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Reword the deprecation notice. * modules/get_date: Rename to modules/parse-datetime. * modules/get_date-tests: Rename to modules/parse-datetime-tests. * m4/get_date.m4: Rename to m4/parse-datetime.m4. * lib/get_date.y: Rename to lib/parse-datetime.y. * tests/test-get_date.c: Rename to tests/test-parse-datetime.c. * doc/get_date.texi: Rename to doc/parse-datetime.texi. * doc/getdate.texi: Provide fallback wrapper. * lib/getdate.h: Move guts, and wrap... * lib/parse-datetime.h: ...new file. * lib/parse-datetime.y (get_date): Rename... (parse_datetime): ...to this. * m4/parse-datetime.m4 (gl_GET_DATE): Rename... (gl_PARSE_DATETIME): ...to this. * doc/posix-functions/getdate.texi (get_date): Provide fallback documentation. * modules/getdate (Files): Provide fallback docs and header. (Notice, Depends-on): Update references. * tests/test-parse-datetime.c: Likewise. * DEPENDENCIES: Likewise. * MODULES.html.sh (Date and time <time.h>): Likewise. * doc/parse-datetime.texi (Date input formats) (Authors of parse_datetime): Likewise. * modules/parse-datetime (Files, configure.ac, Makefile.am) (Include): Likewise. * modules/parse-datetime-tests (Files, Makefile.am): Likewise. * gnulib-tool: Likewise. * m4/bison.m4 (gl_BISON): Likewise. Suggested by Bruno Haible. Signed-off-by: Eric Blake <eblake@redhat.com>
* more ports to Solaris tr, which needs [] around rangesPaul Eggert2010-10-051-3/+3
| | | | | | | * gnulib-tool: Solaris tr needs [] around ranges. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise. * tests/test-pipe-filter-gi1.c (main): Likewise. * tests/test-pipe-filter-ii1.c (main): Likewise.
* gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.Bruno Haible2010-10-051-0/+12
| | | | | | * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool library, put '-no-undefined' and the link dependencies into _LDFLAGS. Reported by Bruce Korb and Eric Blake.
* gnulib-tool: Fixes for --create-testdir with --libtool.Bruno Haible2010-10-041-0/+13
| | | | | | | | * gnulib-tool (func_get_automake_snippet): Don't augment EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into an executable. (func_create_testdir): Handle module 'alloca' like func_import. Reported by Bruce Korb <bruce.korb@gmail.com>.
* gnulib-tool: In testdirs, use the newest available config.{guess.sub}.Bruno Haible2010-10-021-0/+5
| | | | | * gnulib-tool (func_create_testdir): Use config.guess and config.sub from gnulib, not from Automake.
* More renaming from 'getdate' to 'get_date'.Bruno Haible2010-09-301-1/+1
| | | | | | | | | | * doc/get_date.texi: Renamed from doc/getdate.texi. * modules/get_date (Files): Update. * MODULES.html.sh (Date and time <time.h>): Update. * DEPENDENCIES: Update. * gnulib-tool: Update comment. * m4/bison.m4 (gl_BISON): Likewise. * m4/get_date.m4 (gl_GET_DATE): Likewise.
* gnulib-tool: Fix --help output.Bruno Haible2010-09-201-6/+16
| | | | | * gnulib-tool (func_usage): Fix help message. Reported by Reuben Thomas <rrt@sc3d.org>.
* gnulib-tool: work with NetBSD /bin/shEric Blake2010-09-091-36/+36
| | | | | | | | | | | | | * gnulib-tool (func_cache_var, func_cache_lookup_module) (func_get_description, func_get_comment, func_get_status) (func_get_notice, func_get_applicability, func_get_filelist) (func_get_dependencies, func_get_autoconf_early_snippet) (func_get_autoconf_snippet, func_get_automake_snippet) (func_get_include_directive, func_get_link_directive) (func_get_license, func_get_maintainer, func_import): Avoid shell syntax errors from parsing syntax extensions. Signed-off-by: Eric Blake <eblake@redhat.com>
* gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.Bruno Haible2010-09-091-11/+7
| | | | | * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use a reliable way to determine whether the 'alias' command works.
* gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.Bruno Haible2010-09-081-2/+10
| | | | | | | * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias' commands, because some shells ignore redirections when there is an error in the command lookup. Reported by Eric Blake.
* gnulib-tool: Highlight the changed options.Bruno Haible2010-09-071-4/+16
| | | | | * gnulib-tool (func_usage): Display the --import, --add-import, --remove-import explanations in bold font.
* gnulib-tool: Help migration from --import to --add-import or --update.Bruno Haible2010-09-041-0/+13
| | | | | * gnulib-tool: Emit a verbose error message when --import is used without any module name.
* gnulib-tool: Change --import. New options --add/remove-import.Bruno Haible2010-09-041-205/+279
| | | | | | | | | | | | * gnulib-tool: New options --add-import, --remove-import. (func_usage): Document them. (have_associative): Define always. (func_import): In import mode, don't merge the specified settings with the cached settings. Implement remove-import mode. * doc/gnulib-tool.texi (Modified imports): Mention the new options. Explain when to use them versus --import. (Simple update): Use --add-import instead of --import. * NEWS: Mention the change.
* gnulib-tool: Don't talk about CVS any more.Bruno Haible2010-09-041-9/+12
| | | | | * gnulib-tool (func_usage, func_import): Write "version control" instead of CVS.
* gnulib-tool: Fix expression that counts directories.Bruno Haible2010-09-041-1/+1
|
* gnulib-tool: Avoid error when run in a package without Makefile.am.Bruno Haible2010-09-041-0/+2
| | | | | | * gnulib-tool: When collecting the m4dirs in a package that does not have a Makefile.am, eliminate those directories that contain no gnulib-cache.m4.
* Set PATH_SEPARATOR the same way autoconf does.Stefano Lattarini2010-09-041-9/+8
| | | | | | * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR the same way autoconf-generated configure scripts do. * posix-modules: Likewise.
* Fix gnulib-tool sed script de-commentation for AIX sed.Ralf Wildenhues2010-08-221-2/+2
| | | | | | | * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3 sed. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* gnulib-tool: Display specified modules and dependencies differently.Bruno Haible2010-06-131-4/+27
|
* gnulib-tool: Align code of func_import and func_create_testdir.Bruno Haible2010-06-131-4/+6
|
* Fix regression from 2010-04-25.Bruno Haible2010-05-021-52/+44
|
* gnulib-tool: Don't include hairy tests of dependencies in testdirs.Bruno Haible2010-04-251-72/+62
|
* gnulib-tool: Add --without-*-tests options.Bruno Haible2010-04-251-0/+79
|
* gnulib-tool: silence warning on BSD shEric Blake2010-04-131-1/+1
| | | | | | | | | FreeBSD /bin/sh issues warnings about commands not found prior to redirecting stderr. * gnulib-tool: Avoid leaking warning about unknown 'declare'. Signed-off-by: Eric Blake <eblake@redhat.com>
* Stricter declaration checking in testdirs.Bruno Haible2010-04-111-1/+8
|
* gnulib-tool: Ensure that long-running tests are executed last.Bruno Haible2010-04-021-9/+18
|
* gnulib-tool: Ensure the tests in the main directory are executed first.Bruno Haible2010-04-021-1/+1
|
* gnulib-tool: Create distributed built sources also for the tests.Bruno Haible2010-04-021-9/+37
|
* gnulib-tool: Obey user's environment variables.Bruno Haible2010-04-021-1/+3
|
* gnulib-tool: Provide the value of --m4-base to modules.Bruno Haible2010-04-021-0/+3
|
* Fix definition of tests witness macro.Bruno Haible2010-03-291-1/+1
|
* Fix definition of tests witness macro.Bruno Haible2010-03-291-0/+2
|
* gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.Bruno Haible2010-03-281-12/+23
|