diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-08-20 08:29:50 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-08-20 08:29:50 +0300 |
commit | 9c20dbb9f4494b91eef2d40483b5a88b91b35f7e (patch) | |
tree | 5f0b18e506f23c2d779331e5f9f2ffb3aa48679d | |
parent | 78a1be8e1e947ada60a1e3b458dbde0d7a400a98 (diff) | |
download | posixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.gz posixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.bz2 |
Update runcap
-rw-r--r-- | MANIFEST | 4 | ||||
-rw-r--r-- | Makefile.PL | 23 | ||||
-rw-r--r-- | lib/POSIX/Run/Capture.pm | 4 | ||||
m--------- | runcap | 0 |
4 files changed, 20 insertions, 11 deletions
@@ -18,7 +18,9 @@ t/06lines.t | |||
18 | t/07two.t | 18 | t/07two.t |
19 | t/08input.t | 19 | t/08input.t |
20 | t/TestCapture.pm | 20 | t/TestCapture.pm |
21 | runcap/Makefile | 21 | runcap/Makefile.am |
22 | runcap/configure.ac | ||
23 | runcap/configure | ||
22 | runcap/runcap.h | 24 | runcap/runcap.h |
23 | runcap/runcap.c | 25 | runcap/runcap.c |
24 | runcap/getc.c | 26 | runcap/getc.c |
diff --git a/Makefile.PL b/Makefile.PL index 29aa661..4aee252 100644 --- a/Makefile.PL +++ b/Makefile.PL | |||
@@ -15,8 +15,8 @@ WriteMakefile( | |||
15 | LIBS => [''], # e.g., '-lm' | 15 | LIBS => [''], # e.g., '-lm' |
16 | DEFINE => '', | 16 | DEFINE => '', |
17 | INC => '-I.', # e.g., '-I. -I/usr/include/other' | 17 | INC => '-I.', # e.g., '-I. -I/usr/include/other' |
18 | OBJECT => '$(O_FILES) runcap/libruncap.a', | 18 | OBJECT => '$(O_FILES)', |
19 | DIR => [ 'runcap' ], | 19 | MYEXTLIB => 'runcap/libruncap.a', |
20 | META_MERGE => { | 20 | META_MERGE => { |
21 | 'meta-spec' => { version => 2 }, | 21 | 'meta-spec' => { version => 2 }, |
22 | resources => { | 22 | resources => { |
@@ -33,12 +33,6 @@ WriteMakefile( | |||
33 | 33 | ||
34 | package MY; | 34 | package MY; |
35 | 35 | ||
36 | sub pasthru { | ||
37 | my $val = shift->SUPER::pasthru(@_); | ||
38 | chomp($val); | ||
39 | return $val . "\\\n O='\$(CCFLAGS)'"; | ||
40 | } | ||
41 | |||
42 | sub test { | 36 | sub test { |
43 | my $val = shift->SUPER::test(@_); | 37 | my $val = shift->SUPER::test(@_); |
44 | open(my $fd, '<', \$val); | 38 | open(my $fd, '<', \$val); |
@@ -71,3 +65,16 @@ sub test { | |||
71 | 65 | ||
72 | return join("\n", @ret); | 66 | return join("\n", @ret); |
73 | } | 67 | } |
68 | |||
69 | sub postamble { | ||
70 | ' | ||
71 | $(MYEXTLIB): runcap/configure | ||
72 | cd runcap && \ | ||
73 | ./configure CFLAGS="$(CCFLAGS) $(CCCDLFLAGS)" && \ | ||
74 | $(MAKE) | ||
75 | |||
76 | runcap/configure: runcap/configure.ac | ||
77 | RUNCAP_BUILD=static autoreconf -f -i -s -I. runcap | ||
78 | ' | ||
79 | } | ||
80 | |||
diff --git a/lib/POSIX/Run/Capture.pm b/lib/POSIX/Run/Capture.pm index 5dedad0..aa9825a 100644 --- a/lib/POSIX/Run/Capture.pm +++ b/lib/POSIX/Run/Capture.pm | |||
@@ -86,8 +86,8 @@ POSIX::Run::Capture - run command and capture its output | |||
86 | $obj->set_timeout($n); | 86 | $obj->set_timeout($n); |
87 | $obj->set_input($fh_or_string); | 87 | $obj->set_input($fh_or_string); |
88 | 88 | ||
89 | $aref = head3 $obj->argv; | 89 | $aref = $obj->argv; |
90 | $str = =head3 $obj->program | 90 | $str = $obj->program |
91 | $num = $obj->timeout; | 91 | $num = $obj->timeout; |
92 | 92 | ||
93 | =head1 DESCRIPTION | 93 | =head1 DESCRIPTION |
diff --git a/runcap b/runcap | |||
Subproject 3f686a2e5768174553b39697576171f5862433e | Subproject 80134405a63517bda8964f7993d096dc1df247c | ||