diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-12-01 08:46:15 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-12-01 08:47:56 +0200 |
commit | 048800a78f64808116bb9b943837062a67f586ae (patch) | |
tree | ec97848673a9ebfe6cb5fe8c7ef4e96d943db004 /README | |
parent | 0145de1db25c3840346b9cd9ea44e571812e5516 (diff) | |
download | runcap-048800a78f64808116bb9b943837062a67f586ae.tar.gz runcap-048800a78f64808116bb9b943837062a67f586ae.tar.bz2 |
Bugfixes
* runcap.3: Update docs.
* runcap.c (stream_capture_get,stream_capture_put)
(runcap_loop): Handle EINTR.
* README: New file.
Diffstat (limited to 'README')
-rw-r--r-- | README | 68 |
1 files changed, 68 insertions, 0 deletions
@@ -0,0 +1,68 @@ | |||
1 | #+TITLE: runcap | ||
2 | |||
3 | * Overview | ||
4 | |||
5 | The function *runcap* runs an external command, and waits for its | ||
6 | termination, optionally capturing its standard output and standard | ||
7 | error streams, and piping data to its standard input. | ||
8 | |||
9 | * Building as a standalone library | ||
10 | |||
11 | The following steps will build the project as a standalone installable | ||
12 | library: | ||
13 | |||
14 | 1. Configure the package | ||
15 | #+BEGIN_SRC shell-script | ||
16 | ./configure | ||
17 | #+END_SRC | ||
18 | 2. Build the project. | ||
19 | #+BEGIN_SRC shell-script | ||
20 | make | ||
21 | #+END_SRC | ||
22 | 3. Install the files (normally run as root). | ||
23 | #+BEGIN_SRC shell-script | ||
24 | make install | ||
25 | #+END_SRC | ||
26 | |||
27 | This will install the files *libruncap.so* and *libruncap.a* to the | ||
28 | system library directory, and the header file *runcap.h* to the | ||
29 | system include directory. | ||
30 | |||
31 | * Incorporating as a submodule | ||
32 | |||
33 | To incorporate *runcap* as a submodule to your project, follow these | ||
34 | steps: | ||
35 | |||
36 | 1. Change to your project's toplevel directory. | ||
37 | 2. Clone the project. | ||
38 | #+BEGIN_SRC shell-script | ||
39 | git submodule add git://git.gnu.org.ua/runcap.git | ||
40 | git submodule init | ||
41 | #+END_SRC | ||
42 | 3. Add it to *git* index: | ||
43 | #+BEGIN_SRC shell-script | ||
44 | git add runcap | ||
45 | #+END_SRC | ||
46 | 4. Add it to your toplevel *Makefile.am*. | ||
47 | #+BEGIN_SRC make | ||
48 | ACLOCAL_AMFLAGS = -I grecs/am | ||
49 | |||
50 | SUBDIRS = runcap | ||
51 | #+END_SRC | ||
52 | 5. Edit your *configure.ac* | ||
53 | #+BEGIN_SRC automake | ||
54 | RUNCAP_SETUP | ||
55 | #+END_SRC | ||
56 | 6. | ||
57 | #+BEGIN_SRC make | ||
58 | AM_CPPFLAGS = @RUNCAP_INC@ | ||
59 | AM_LDADD = @RUNCAP_LDADD@ | ||
60 | #+END_SRC | ||
61 | |||
62 | |||
63 | # Local Variables: | ||
64 | # mode: org | ||
65 | # paragraph-separate: "[ ^L]*$" | ||
66 | # version-control: never | ||
67 | # End: | ||
68 | |||