'Config::Settings' => '0.02',
},
LICENSE => 'perl',
- EXE_FILES => [ 'bin/tak' ],
+ EXE_FILES => [ 'bin/tak', 'bin/tak/stdio-node' ],
);
use Tak::Client;
use Tak::ConnectionService;
use Net::OpenSSH;
+use Tak::STDIONode;
use Moo;
with 'Tak::Role::Service';
my ($self, $on, %args) = @_;
my $log_level = $args{log_level}||'info';
my ($kid_in, $kid_out, $kid_pid) = $self->_open($on, $log_level);
- $kid_in->print(io('maint/mk-fat |')->all, "__END__\n");
+ $kid_in->print($Tak::STDIONode::DATA, "__END__\n");
# Need to get a handshake to indicate STDIOSetup has finished
# messing around with file descriptors, otherwise we can severely
# confuse things by sending before the dup.
#!/bin/sh
-#if [ -e fatlib ]; then rm -r fatlib; fi
-#fatpack tree $(fatpack packlists-for strictures.pm Moo.pm JSON/PP.pm MRO/Compat.pm Class/C3.pm Algorithm/C3.pm Log/Contextual.pm Data/Dumper/Concise.pm)
-fatpack file
-#rm -r fatlib
-echo "use lib 'lib'; use Tak::STDIOSetup; Tak::STDIOSetup->run;"
+if [ -e fatlib ]; then rm -r fatlib; fi
+fatpack tree $(fatpack packlists-for strictures.pm Moo.pm JSON/PP.pm MRO/Compat.pm Class/C3.pm Algorithm/C3.pm Log/Contextual.pm Data/Dumper/Concise.pm)
+rm lib/Tak/STDIONode.pm
+(
+ echo 'package Tak::STDIONode;
+our $DATA = do { local $/; <DATA> };
+1;
+__DATA__
+';
+ fatpack file;
+ cat bin/tak-stdio-node
+)>lib/Tak/STDIONode.pm
+rm -r fatlib