text
stringlengths
0
834k
if ($?) {
$rc = ($? >> 8);
if ($rc == 0) {
$rc = $?;
}
}
exit $rc;
}
}
}
sub join_sh_args ($) {
my $args = shift;
my @args = @$args;
for (@args) {
s/([\\\s'""><`\[\]\&\$#*?!()|;])/\\$1/g;
}
return join "" "", @args;
}
sub split_sh_args ($) {
my $s = shift;
my @cmd;
while (1) {
if ($s =~ /\G (\s*) ""([^""]*)"" /gmscx) {
my ($sep, $v) = ($1, $2);
#warn ""sep: [$sep], v: [$v]"";
if (!$sep && @cmd) {
$cmd[-1] .= $v;
} else {
push @cmd, $v;
}
} elsif ($s =~ /\G (\s*) '([^']*)' /gmscx) {
my ($sep, $v) = ($1, $2);
#warn ""sep: [$sep], v: [$v]"";
if (!$sep && @cmd) {
$cmd[-1] .= $v;
} else {
push @cmd, $v;
}
} elsif ($s =~ /\G (\s*) ( (?: \\. | [^\s'""\\]+ )+ ) /gmscx) {
my ($sep, $v) = ($1, $2);
#warn ""sep: [$sep], v: [$v]"";
$v =~ s/\\(.)/$1/g;
if (!$sep && @cmd) {
$cmd[-1] .= $v;
} else {
push @cmd, $v;
}
} elsif ($s =~ /\G \s* (\S.*) /gmscx) {
die ""syntax error: $1"";
} else {
last;
}
}
#use Data::Dumper;
#warn ""cmd: "", Dumper \@cmd;
return @cmd;
}
__END__
:endofperl
",26.0332155477,88,0.4399381057
233,d02200207eb57041f00691617fc40c897fc21e94,5100,bat,Batchfile,docs/make.bat,tychota/seiketsu,2b5280365b9de44cd84ac65ed74981b30be5cc76,['MIT'],,,,docs/make.bat,tychota/seiketsu,2b5280365b9de44cd84ac65ed74981b30be5cc76,['MIT'],,,,docs/make.bat,tychota/seiketsu,2b5280365b9de44cd84ac65ed74981b30be5cc76,['MIT'],,,,"@ECHO OFF
REM Command file for Sphinx documentation
if ""%SPHINXBUILD%"" == """" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT ""%PAPER%"" == """" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if ""%1"" == """" goto help
if ""%1"" == ""help"" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project