Skip to content

Commit fa233e3

Browse files
committed
expect : fix XML by converting para to simpara tags via script
1 parent b72987c commit fa233e3

7 files changed

Lines changed: 64 additions & 72 deletions

File tree

reference/expect/book.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<book xml:id="book.expect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="book.expect">
55
<?phpdoc extension-membership="pecl" ?>
66
<title>Expect</title>
77

88
<!-- {{{ preface -->
99
<preface xml:id="intro.expect">
1010
&reftitle.intro;
11-
<para>
11+
<simpara>
1212
Esta extensão permite interagir com processos através do PTY. Pode-se
1313
considerar o uso do <link linkend="wrappers.expect">empacotador <literal>expect://</literal></link>
1414
com as <link linkend="ref.filesystem">funções do sistema de
1515
arquivos</link> que fornece uma interface mais simples e intuitiva.
16-
</para>
16+
</simpara>
1717
</preface>
1818
<!-- }}} -->
1919

@@ -23,7 +23,6 @@
2323
&reference.expect.reference;
2424

2525
</book>
26-
2726
<!-- Keep this comment at the end of the file
2827
Local variables:
2928
mode: sgml
@@ -44,4 +43,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
4443
vim: et tw=78 syn=sgml
4544
vi: ts=1 sw=1
4645
-->
47-

reference/expect/configure.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: fbc4ef92fa953823ed73021e462bd291499dc633 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
<section xml:id="expect.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="expect.installation">
45
&reftitle.install;
5-
<para>
6+
<simpara>
67
&pecl.moved;
78
&pecl.info;
89
<link xlink:href="&url.pecl.package;expect">&url.pecl.package;expect</link>.
9-
</para>
10-
<para>
10+
</simpara>
11+
<simpara>
1112
Para usar essas funções, deve-se compilar o PHP com suporte a Expect
1213
usando a opção de configuração
1314
<option role="configure">--with-expect[=DIR]</option>.
14-
</para>
15-
<para>
15+
</simpara>
16+
<simpara>
1617
Os usuários do Windows devem ativar o <filename>php_expect.dll</filename> dentro
1718
do &php.ini; para usar essas funções.
1819
&pecl.windows.download;
19-
</para>
20+
</simpara>
2021
</section>
21-
2222
<!-- Keep this comment at the end of the file
2323
Local variables:
2424
mode: sgml
@@ -39,4 +39,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
3939
vim: et tw=78 syn=sgml
4040
vi: ts=1 sw=1
4141
-->
42-

reference/expect/examples.xml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<chapter xml:id="expect.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="expect.examples">
55
&reftitle.examples;
66
<section xml:id="expect.examples-usage">
77
<title>Exemplos de uso de Expect</title>
88
<example>
99
<title>Exemplo de uso de Expect</title>
10-
<para>
10+
<simpara>
1111
Este exemplo conecta-se ao servidor via SSH e mostra o tempo de atividade
1212
remoto.
13-
</para>
13+
</simpara>
1414
<programlisting role="php">
1515
<![CDATA[
1616
<?php
@@ -40,10 +40,10 @@ fclose ($stream);
4040
</programlisting>
4141
</example>
4242

43-
<para>
43+
<simpara>
4444
O exemplo a seguir se conecta ao host remoto, determina se o sistema operacional
4545
instalado é de 32 ou 64 bits e, em seguida, executa a atualização para um pacote específico.
46-
</para>
46+
</simpara>
4747
<example>
4848
<title>Outro Exemplo de Uso de Expect</title>
4949
<programlisting role="php">
@@ -115,7 +115,6 @@ fclose ($stream);
115115
</example>
116116
</section>
117117
</chapter>
118-
119118
<!-- Keep this comment at the end of the file
120119
Local variables:
121120
mode: sgml
@@ -136,4 +135,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
136135
vim: et tw=78 syn=sgml
137136
vi: ts=1 sw=1
138137
-->
139-

reference/expect/functions/expect-expectl.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 1ad8299bbc5c7d1b5dcf6883aaba0f7dbc4f116f Maintainer: leonardolara Status: ready -->
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: leonardolara Status: ready -->
33
<!-- CREDITS: leonardolara -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.expect-expectl">
55
<refnamediv>
@@ -16,28 +16,28 @@
1616
<methodparam><type>array</type><parameter>cases</parameter></methodparam>
1717
<methodparam choice="opt"><type>array</type><parameter role="reference">match</parameter></methodparam>
1818
</methodsynopsis>
19-
<para>
19+
<simpara>
2020
Espera até que a saída de um processo corresponda a um dos padrões,
2121
um período de tempo especificado tenha passado ou um <acronym>EOF</acronym> seja alcançado.
22-
</para>
23-
<para>
22+
</simpara>
23+
<simpara>
2424
Se <parameter>match</parameter> for fornecido, então ele será preenchido com o resultado da pesquisa.
2525
A string correspondente pode ser encontrada em <parameter>match[0]</parameter>.
2626
As substrings de correspondência (de acordo com os parênteses) no padrão original podem ser encontradas
2727
em <parameter>match[1]</parameter>, <parameter>match[2]</parameter> e assim por
2828
diante, até <parameter>match[9]</parameter> (a limitação do libexpect).
29-
</para>
29+
</simpara>
3030
</refsect1>
3131
<refsect1 role="parameters">
3232
&reftitle.parameters;
3333
<variablelist>
3434
<varlistentry>
3535
<term><parameter>expect</parameter></term>
3636
<listitem>
37-
<para>
37+
<simpara>
3838
Um fluxo Expect, previamente aberto com
3939
<function>expect_popen</function>.
40-
</para>
40+
</simpara>
4141
</listitem>
4242
</varlistentry>
4343
<varlistentry>
@@ -96,16 +96,16 @@
9696
</refsect1>
9797
<refsect1 role="returnvalues">
9898
&reftitle.returnvalues;
99-
<para>
99+
<simpara>
100100
Retorna o valor associado com o padrão que foi correspondido.
101-
</para>
102-
<para>
101+
</simpara>
102+
<simpara>
103103
Em caso de falha, esta função retorna:
104104
<link linkend="constant.exp-eof"><constant>EXP_EOF</constant></link>,
105105
<link linkend="constant.exp-timeout"><constant>EXP_TIMEOUT</constant></link>
106106
ou
107107
<link linkend="constant.exp-fullbuffer"><constant>EXP_FULLBUFFER</constant></link>
108-
</para>
108+
</simpara>
109109
</refsect1>
110110
<refsect1 role="changelog">
111111
&reftitle.changelog;

reference/expect/functions/expect-popen.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 1ad8299bbc5c7d1b5dcf6883aaba0f7dbc4f116f Maintainer: leonardolara Status: ready -->
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: leonardolara Status: ready -->
33
<!-- CREDITS: leonardolara -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.expect-popen">
55
<refnamediv>
@@ -13,32 +13,32 @@
1313
<type>resource</type><methodname>expect_popen</methodname>
1414
<methodparam><type>string</type><parameter>command</parameter></methodparam>
1515
</methodsynopsis>
16-
<para>
16+
<simpara>
1717
Executa comando via Bourne shell, e abre o fluxo PTY para o processo.
18-
</para>
18+
</simpara>
1919
</refsect1>
2020
<refsect1 role="parameters">
2121
&reftitle.parameters;
2222
<variablelist>
2323
<varlistentry>
2424
<term><parameter>command</parameter></term>
2525
<listitem>
26-
<para>
26+
<simpara>
2727
Comando a executar.
28-
</para>
28+
</simpara>
2929
</listitem>
3030
</varlistentry>
3131
</variablelist>
3232
</refsect1>
3333
<refsect1 role="returnvalues">
3434
&reftitle.returnvalues;
35-
<para>
35+
<simpara>
3636
Retorna um fluxo aberto PTY para o processo <literal>stdio</literal>,
3737
<literal>stdout</literal> e <literal>stderr</literal>.
38-
</para>
39-
<para>
38+
</simpara>
39+
<simpara>
4040
Em caso de falha, esta função retorna &false;.
41-
</para>
41+
</simpara>
4242
</refsect1>
4343
<refsect1 role="examples">
4444
&reftitle.examples;

reference/expect/ini.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 1ad8299bbc5c7d1b5dcf6883aaba0f7dbc4f116f Maintainer: leonardolara Status: ready -->
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: leonardolara Status: ready -->
33
<!-- CREDITS: fernandowobeto, leonardolara -->
44
<section xmlns="http://docbook.org/ns/docbook" xml:id="expect.configuration">
55
&reftitle.runtime;
@@ -58,18 +58,18 @@
5858
<type>int</type>
5959
</term>
6060
<listitem>
61-
<para>
61+
<simpara>
6262
Tempo limite para espera pelos dados, ao usar a
6363
função <function>expect_expectl</function>.
64-
</para>
65-
<para>
64+
</simpara>
65+
<simpara>
6666
Um valor "-1" desativa a ocorrência de um tempo limite.
67-
</para>
67+
</simpara>
6868
<note>
69-
<para>
69+
<simpara>
7070
Um valor "0" faz com que a função <function>expect_expectl</function>
7171
retorne imediatamente.
72-
</para>
72+
</simpara>
7373
</note>
7474
</listitem>
7575
</varlistentry>
@@ -80,11 +80,11 @@
8080
<type>bool</type>
8181
</term>
8282
<listitem>
83-
<para>
83+
<simpara>
8484
Informa se Expect deve enviar qualquer saída gerada pelo processo para stdout.
8585
Como os programas interativos normalmente refletem suas informações, isso geralmente é suficiente
8686
para mostrar os dois lados da conversa.
87-
</para>
87+
</simpara>
8888
</listitem>
8989
</varlistentry>
9090

@@ -94,15 +94,15 @@
9494
<type>string</type>
9595
</term>
9696
<listitem>
97-
<para>
97+
<simpara>
9898
Nome do arquivo onde será gravada a saída do processo gerado.
9999
Se este arquivo não existir, ele será criado.
100-
</para>
100+
</simpara>
101101
<note>
102-
<para>
102+
<simpara>
103103
Se esta configuração não estiver vazia, a saída será escrita independentemente do
104104
valor de <link linkend="ini.expect.loguser">expect.loguser</link>.
105-
</para>
105+
</simpara>
106106
</note>
107107
</listitem>
108108
</varlistentry>
@@ -113,10 +113,10 @@
113113
<type>int</type>
114114
</term>
115115
<listitem>
116-
<para>
116+
<simpara>
117117
Altera o tamanho padrão (2000 bytes) do buffer usado para corresponder aos asteriscos
118118
nos padrões.
119-
</para>
119+
</simpara>
120120
</listitem>
121121
</varlistentry>
122122

reference/expect/setup.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<chapter xml:id="expect.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ca6054f609661c9d0513aad1e7db1d8fdf33bed8 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="expect.setup">
55
&reftitle.setup;
66

77
<!-- {{{ Requirements -->
88
<section xml:id="expect.requirements">
99
&reftitle.required;
10-
<para>
11-
Este módulo usa as funções da biblioteca <link
12-
xlink:href="&url.expect;">expect</link>.
10+
<simpara>
11+
Este módulo usa as funções da biblioteca <link xlink:href="&url.expect;">expect</link>.
1312
Será necessária versão da libexpect &gt;= 5.43.0.
14-
</para>
13+
</simpara>
1514
</section>
1615
<!-- }}} -->
1716

@@ -26,15 +25,14 @@
2625
<!-- {{{ Resources -->
2726
<section xml:id="expect.resources">
2827
&reftitle.resources;
29-
<para>
28+
<simpara>
3029
<function>expect_popen</function> retorna um fluxo PTY aberto usado por
3130
<function>expect_expectl</function>.
32-
</para>
31+
</simpara>
3332
</section>
3433
<!-- }}} -->
3534

3635
</chapter>
37-
3836
<!-- Keep this comment at the end of the file
3937
Local variables:
4038
mode: sgml
@@ -55,4 +53,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
5553
vim: et tw=78 syn=sgml
5654
vi: ts=1 sw=1
5755
-->
58-

0 commit comments

Comments
 (0)