1. 27 Jan, 2019 3 commits
  2. 05 Jan, 2019 3 commits
    • Colin Watson's avatar
      Note requirement of Automake 1.11.2 · 32d61235
      Colin Watson authored
      AM_PROG_AR was actually introduced in 1.11.2, not 1.11.
      
      * bootstrap.conf (buildreq): Bump required automake version to 1.11.2.
      * NEWS: Clarify.
      32d61235
    • Colin Watson's avatar
      Upgrade to Gnulib 20190105 · 384358ad
      Colin Watson authored
      In line with Gnulib, we now require Autoconf 2.63 and Automake 1.11.
      
      * bootstrap: Sync to Gnulib d271f868a8df9bbec29049d01e056481b7a1a263.
      * bootstrap.conf (GNULIB_REVISION): Set to
      d271f868a8df9bbec29049d01e056481b7a1a263.
      (buildreq): Bump required autoconf version to 2.63.
      * configure.ac (AM_INIT_AUTOMAKE): Bump to 1.11.
      (AM_SILENT_RULES, AM_PROG_AR): Remove conditionals, which were there for
      Automake 1.10 support.
      (AC_PREREQ): Bump to 2.63.
      * NEWS: Document this.
      384358ad
    • Colin Watson's avatar
      Use tar --sort=name if available · 1c2faf2c
      Colin Watson authored
      * m4/pipeline-tar-sort-name.m4: New file.
      * configure.ac: Call PIPELINE_TAR_SORT_NAME.
      1c2faf2c
  3. 24 Dec, 2018 2 commits
    • Colin Watson's avatar
      More (void *) 0 as variadic sentinel · 1569f8f1
      Colin Watson authored
      * tests/basic.c (test_basic_status, test_basic_args,
      test_basic_pipeline, test_basic_wait_all, test_basic_setenv,
      test_basic_unsetenv, test_basic_clearenv, test_basic_chdir,
      test_basic_fchdir, test_basic_pre_exec, test_basic_sequence): Use
      (void *) rather than NULL as a sentinel for variadic functions.
      * tests/common.c (temp_dir_teardown): Likewise.
      * tests/exec.c (test_exec_process): Likewise.
      * tests/inspect.c (test_inspect_command, test_inspect_pipeline):
      Likewise.
      * tests/pump.c (fail_unless_files_equal,
      test_pump_connect_attaches_correctly, test_pump_tee): Likewise.
      * tests/redirect.c (test_redirect_files, test_redirect_outfile):
      Likewise.
      1569f8f1
    • Colin Watson's avatar
      Use (void *) 0 as a variadic sentinel · e6ff06b8
      Colin Watson authored
      NULL is formally incorrect here since the standard allows it to be an
      integer constant expression.
      
      * lib/pipeline.c (argstr_get_word, pipecmd_tostring, pipeline_tostring):
      Use (void *) rather than NULL as a sentinel for variadic functions.
      e6ff06b8
  4. 29 May, 2018 1 commit
  5. 28 May, 2018 3 commits
    • Colin Watson's avatar
      Prefer the Gnulib versions of some more files · 59b4307c
      Colin Watson authored
      * bootstrap.conf (gnulib_extra_files): Remove.  (This has the effect of
      reverting to bootstrap's default of also copying some files in
      build-aux/ from Gnulib.)
      59b4307c
    • Colin Watson's avatar
      Clean up bootstrap configuration slightly · 9253fb77
      Colin Watson authored
      * bootstrap.conf (gnulib_name, source_base, m4_base): Set these instead
      of the corresponding options in gnulib_tool_option_extras.
      9253fb77
    • Colin Watson's avatar
      Upgrade to Gnulib 20180527 · 98002165
      Colin Watson authored
      * bootstrap.conf (GNULIB_URL): Remove.
      (GNULIB_REVISION): Set to 90f289f249a266b1afb9c63e182f5d979d17df5f.
      * configure.ac (AM_PROG_AR, LT_INIT): Move below gl_EARLY.
      98002165
  6. 27 May, 2018 1 commit
    • Colin Watson's avatar
      Switch to bootstrap · 9b7b0d22
      Colin Watson authored
      We no longer keep autogenerated files in git.
      
      * .gitignore: Add **/Makefile.in, /INSTALL, /aclocal.m4, /build-aux,
      /config.h.in, /configure, /gl, and /gnulib.  Remove gnulib/*.
      * INSTALL, Makefile.in, aclocal.m4, autogen.sh, build-aux, config.h.in,
      configure, gnulib, lib/Makefile.in, man/Makefile.in, tests/Makefile.in:
      Remove.
      * bootstrap, bootstrap.conf: New files.
      * Makefile.am (SUBDIRS, EXTRA_DIST, ACLOCAL_AMFLAGS): Refer to gl/
      rather than gnulib/ (gnulib/ now contains pristine source).
      (EXTRA_DIST): Replace autogen.sh with bootstrap and bootstrap.conf.
      Remove gnulib/m4/gnulib-cache.m4 and gnulib/m4/gnulib-tool.m4.
      * configure.ac (AC_CONFIG_FILES): Refer to gl/ rather than gnulib/.
      * lib/Makefile.am (libpipeline_la_CPPFLAGS, libpipeline_la_LIBADD):
      Likewise.
      * tests/Makefile.am (LIBS, AM_CPPFLAGS): Likewise.
      * release.sh: Call ./bootstrap rather than ./autogen.sh.
      9b7b0d22
  7. 14 Nov, 2017 2 commits
    • Colin Watson's avatar
      Version: 1.5.0. · 5b448639
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:0:5.
      5b448639
    • Colin Watson's avatar
      Add pipecmd_pre_exec function · be7edd06
      Colin Watson authored
      * lib/pipeline-private.h (struct pipecmd): Add pre_exec_func,
      pre_exec_free_func, and pre_exec_data.
      * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
      pipecmd_new_sequencev): Initialise cmd->pre_exec_func,
      cmd->pre_exec_free_func, and cmd->pre_exec_data.
      (pipecmd_dup): Copy cmd->pre_exec_func, cmd->pre_exec_free_func, and
      cmd->pre_exec_data if necessary.
      (pipecmd_pre_exec): New function.
      (pipecmd_exec): If cmd->pre_exec_func is set, call it immediately before
      calling execvp or cmd->func.
      * lib/pipeline.h (pipecmd_pre_exec): Add prototype.
      (pipeline_install_post_fork): Cross-reference pipecmd_pre_exec in
      comment.
      * man/Makefile.am (FUNCTIONS): Add pipecmd_pre_exec.
      * man/libpipeline.3 (Functions to build individual commands): Document
      pipecmd_pre_exec.
      (Functions to run pipelines and handle signals): Cross-reference
      pipecmd_pre_exec from pipeline_install_post_fork.
      * tests/basic.c (test_basic_pre_exec): Test pipecmd_pre_exec.
      * NEWS: Document this.
      * README: Update copyright years.
      be7edd06
  8. 10 Jul, 2017 4 commits
    • Colin Watson's avatar
      tests/read.c: Update program_name · 34fd4ab4
      Colin Watson authored
      34fd4ab4
    • Colin Watson's avatar
      Version: 1.4.2. · 730709d0
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 5:2:4.
      730709d0
    • Colin Watson's avatar
      Fix EOF detection in get_line · 65fd8474
      Colin Watson authored
      * lib/pipeline.c (get_line): A short read isn't a reliable way to detect
      end-of-file.  Instead, keep track of the previous buffer length returned
      by get_block; if we get the same length twice in a row then that
      indicates EOF.
      * tests/reading_long_line.c: Rename to ...
      * tests/read.c: ... this.  Update build system and test names to match.
      (slow_line_helper, test_read_readline_slow): New test.
      65fd8474
    • Colin Watson's avatar
      Various autotools upgrades · 2dd24921
      Colin Watson authored
      Upgrade to Automake 1.15.1, config.guess 2016-10-02, config.sub
      2016-11-04, and Libtool 2.4.6-2 (from Debian).
      2dd24921
  9. 13 Oct, 2016 1 commit
  10. 17 Aug, 2015 2 commits
  11. 16 Aug, 2015 1 commit
    • Colin Watson's avatar
      Fix test failure with Check 0.10.0 · 89f77476
      Colin Watson authored
      Reported by Bruce Dubbs.
      
      * tests/inspect.c (pid_helper): Set SIGTERM back to SIG_DFL, in case
      Check installed its own handler for that.
      * NEWS: Document this.
      89f77476
  12. 06 Aug, 2015 1 commit
  13. 18 Jun, 2015 1 commit
    • Colin Watson's avatar
      Various autotools upgrades · 5c3f7508
      Colin Watson authored
      * aclocal.m4: Upgrade to Gettext 0.19.4.
      * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.11 (from Debian).
      5c3f7508
  14. 26 Oct, 2014 2 commits
  15. 24 Oct, 2014 1 commit
    • Colin Watson's avatar
      Add pipecmd_fchdir function · 753abf72
      Colin Watson authored
      * lib/pipeline-private.h (struct pipecmd): Add cwd_fd.
      * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
      pipecmd_new_sequencev): Initialise cmd->cwd_fd.
      (pipecmd_dup): Copy cmd->cwd_fd if necessary.
      (pipecmd_fchdir): New function.
      (pipecmd_dump, pipecmd_tostring): Serialise cmd->cwd_fd as "(cd <fd
      %d> && ...)" if necessary.
      (pipecmd_exec): If cmd->cwd_fd is set, fchdir to it.
      * lib/pipeline.h (pipecmd_fchdir): Add prototype.
      * man/Makefile.am (FUNCTIONS): Add pipecmd_fchdir.
      * man/libpipeline.3 (Functions to build individual commands):
      Document pipecmd_fchdir.
      * tests/basic.c (test_basic_fchdir): Test pipecmd_fchdir.
      * NEWS: Document this.
      753abf72
  16. 22 Oct, 2014 4 commits
  17. 22 Sep, 2014 2 commits
    • Colin Watson's avatar
      Version: 1.3.1. · 906b40bf
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
      4:1:3.
      906b40bf
    • Colin Watson's avatar
      Fix build on systems with neither setenv nor clearenv · 41c5dc87
      Colin Watson authored
      Fixes Savannah bug #43265.
      
      * lib/pipeline.c (clearenv): Don't define if defined(HAVE_SETENV),
      as in that case gnulib will provide this symbol.
      * lib/pipeline-private.h (clearenv): Likewise.
      * NEWS: Document this.
      41c5dc87
  18. 17 Sep, 2014 1 commit
  19. 15 Sep, 2014 1 commit
    • Colin Watson's avatar
      Various autotools upgrades · d1571a3c
      Colin Watson authored
      * aclocal.m4: Upgrade to pkg-config 0.28 and Gettext 0.19.2.
      * build-aux/config.sub: Upgrade to 2014-09-11.
      * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.10 (from Debian).
      d1571a3c
  20. 03 Aug, 2014 1 commit
  21. 23 Apr, 2014 1 commit
    • Colin Watson's avatar
      Fix test failures on Cygwin. · 6d04129e
      Colin Watson authored
      Reported by Chris J. Breisch.
      
      * configure.ac: Define SHELL as a C preprocessor symbol.
      * tests/basic.c (test_basic_wait_all, test_basic_setenv,
      test_basic_unsetenv, test_basic_clearenv): Execute SHELL rather than
      "sh".
      * tests/exec.c (test_exec_process): Likewise.
      
      * tests/basic.c (test_basic_args, test_basic_pipeline,
      test_basic_unsetenv, test_basic_clearenv, test_basic_chdir,
      test_basic_sequence): Check for pipeline_readline returning NULL.
      * tests/inspect.c (test_inspect_pid): Likewise.
      * tests/redirect.c (test_redirect_files): Likewise.
      
      * NEWS: Document this.
      6d04129e
  22. 26 Mar, 2014 2 commits