From 2c59f669553677838022d65f2433b31a04bc632d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 5 May 2015 13:10:13 +0000 Subject: - add trap - rc for 2.1.2.0 --- INSTALL | 2 +- doc/index.html | 5 +- doc/trap.html | 98 +++++++++++++++++++++++++++ doc/upgrade.html | 7 ++ package/deps.mak | 3 + package/info | 2 +- package/modes | 1 + package/targets.mak | 1 + src/execline/deps-exe/trap | 2 + src/execline/trap.c | 161 +++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 278 insertions(+), 4 deletions(-) create mode 100644 doc/trap.html create mode 100644 src/execline/deps-exe/trap create mode 100644 src/execline/trap.c diff --git a/INSTALL b/INSTALL index 28d5af8..f912e75 100644 --- a/INSTALL +++ b/INSTALL @@ -6,7 +6,7 @@ Build Instructions - A POSIX-compliant C development environment - GNU make version 4.0 or later - - skalibs version 2.3.3.0 or later: http://skarnet.org/software/skalibs/ + - skalibs version 2.3.4.0 or later: http://skarnet.org/software/skalibs/ This software will run on any operating system that implements POSIX.1-2008, available at: diff --git a/doc/index.html b/doc/index.html index dda1445..5fb4b3c 100644 --- a/doc/index.html +++ b/doc/index.html @@ -51,7 +51,7 @@ shell's syntax, and has no security issues.
  • GNU make, version 4.0 or later. Please be aware that execline will not build with an earlier version.
  • skalibs version -2.3.3.0 or later. It's a build-time requirement. It's also a run-time +2.3.4.0 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • @@ -66,7 +66,7 @@ library.

    Download

    @@ -136,6 +136,7 @@ to your installation: the shebang lines for your system might be something like
  • The exec program
  • The tryexec program
  • The exit program
  • +
  • The trap program
  • (Basic block management) diff --git a/doc/trap.html b/doc/trap.html new file mode 100644 index 0000000..ff03c2e --- /dev/null +++ b/doc/trap.html @@ -0,0 +1,98 @@ + + + + + execline: the trap command + + + + + + +

    +execline
    +Software
    +skarnet.org +

    + +

    The trap program

    + +trap traps signals and runs a variety of commands according +to the signals it catches. + +

    Interface

    + +

    + In an execlineb script: +

    + +
    +     trap [ -x ] [ -t millisecs ]
    +     {
    +       [ timeout { progtimeout... } ]
    +       [ SIGTERM { progsigterm... } ]
    +       [ quit { progsigquit... } ]
    +       [ 1 { progsighup... } ]
    +       ...
    +     }
    +     prog...
    +
    + + + +

    Options

    + + + +

    Notes

    + + + + + diff --git a/doc/upgrade.html b/doc/upgrade.html index 121b210..ff1d40d 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -17,6 +17,13 @@

    What has changed in execline

    +

    in 2.1.2.0

    + + +

    in 2.1.1.1