invoke-gnutls-cli.texi: ../src/cli-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ .
+ mv -f ../src/$@ ../doc
invoke-gnutls-cli-debug.texi: ../src/cli-debug-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ .
+ mv -f ../src/$@ ../doc
invoke-gnutls-serv.texi: ../src/serv-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ .
+ mv -f ../src/$@ ../doc
invoke-certtool.texi: ../src/certtool-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ .
+ mv -f ../src/$@ ../doc
invoke-srptool.texi: ../src/srptool-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ . && \
sed -i 's/@subsection/@subsubsection/g' $@ && \
- sed -i 's/@section/@subsection/g' $@
+ sed -i 's/@section/@subsection/g' $@ && \
+ mv -f ../src/$@ ../doc
invoke-ocsptool.texi: ../src/ocsptool-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ .
+ mv -f ../src/$@ ../doc
invoke-psktool.texi: ../src/psk-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ . && \
sed -i 's/@subsection/@subsubsection/g' $@ && \
- sed -i 's/@section/@subsection/g' $@
+ sed -i 's/@section/@subsection/g' $@ && \
+ mv -f ../src/$@ ../doc
invoke-p11tool.texi: ../src/p11tool-args.def
-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
- mv ../src/$@ . && \
sed -i 's/@subsection/@subsubsection/g' $@ && \
- sed -i 's/@section/@subsection/g' $@
+ sed -i 's/@section/@subsection/g' $@ && \
+ mv -f ../src/$@ ../doc
info_TEXINFOS = gnutls.texi gnutls-guile.texi
gnutls_TEXINFOS = gnutls.texi fdl-1.3.texi \
GEN_TEX_OBJECTS = cha-preface.tex cha-library.tex cha-intro-tls.tex cha-cert-auth2.tex \
cha-cert-auth.tex cha-gtls-app.tex sec-tls-app.tex cha-programs.tex cha-support.tex \
cha-functions.tex error_codes.tex cha-ciphersuites.tex algorithms.tex cha-shared-key.tex \
- cha-errors.tex alerts.tex cha-internals.tex cha-gtls-examples.tex
+ cha-errors.tex alerts.tex cha-internals.tex cha-gtls-examples.tex \
+ invoke-certtool.tex invoke-gnutls-cli.tex invoke-gnutls-serv.tex \
+ invoke-srptool.tex invoke-psktool.tex invoke-gnutls-cli-debug.tex \
+ invoke-p11tool.tex invoke-ocsptool.tex
+
+invoke-certtool.tex: ../invoke-certtool.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-gnutls-cli.tex: ../invoke-gnutls-cli.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-gnutls-serv.tex: ../invoke-gnutls-serv.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-srptool.tex: ../invoke-srptool.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-psktool.tex: ../invoke-psktool.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-gnutls-cli-debug.tex: ../invoke-gnutls-cli-debug.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-p11tool.tex: ../invoke-p11tool.texi
+ ../scripts/mytexi2latex $< > $@
+
+invoke-ocsptool.tex: ../invoke-ocsptool.texi
+ ../scripts/mytexi2latex $< > $@
cha-preface.tex: ../cha-preface.texi
../scripts/mytexi2latex $< > $@
$out =~ s/\%([a-zA-Z\_]+)/{\\bf $1}/g;
$out =~ s/\@([a-zA-Z\_]+)/{\\bf $1}/g;
$out =~ s/_/\\_/g;
+ $out =~ s/\$/\\\$/g;
$out =~ s/#/\\#/g;
$out =~ s/\n\n/\n/g;
$out =~ s/\\:/:/g;
$mode = pop(@stack);
}
$line =~ s/\@item (.+)/\\item $1/g;
+ $line =~ s/\@item/\\item/g;
$prev_mode = $mode;
} elsif ($mode == ENUMERATE) {
if ($line =~ s/\@end itemize/\\end{enumerate}/g) {
$mode = pop(@stack);
}
$line =~ s/\@item(.*)/\\item $1/g;
+ $line =~ s/\@item/\\item/g;
$prev_mode = $mode;
} elsif ($mode == FLOAT) {
if ($line =~ s/\@end float/\\label\{$label\}\n\\end{figure}/g) {
push(@stack, NORMAL);
next;
}
+ if ($line =~ s/\@ignore//g) {
+ $mode = SKIP;
+ push(@stack, NORMAL);
+ next;
+ }
if ($line =~ s/\@ifnottex//g) {
$mode = SKIP;
push(@stack, NORMAL);
push(@stack, NORMAL);
$mode = MULTITABLE;
}
- if ($line =~ s/\@example/\\begin{example}/g) {
+ if ($line =~ s/\@example$/\\begin{example}/g) {
push(@stack, NORMAL);
$mode = EXAMPLE;
}
$line =~ s/\@image\{($match+)\,($match+)\}/\\includegraphics\[width\=$2\]\{\.\.\/$1\}/g;
$line =~ s/\@samp\{($spacematch+)\}/$1/g;
$line =~ s/\@strong\{/\{\\bf /g;
+ $line =~ s/\@exampleindent.*//g;
$line =~ s/\@c (.*)/\% $1/g;
$line =~ s/\@math\{($mathmatch+)\}/\$$1\$/g;
$line =~ s/\@acronym\{($spacematch+)\}/\\acronym{$1}/g;
$line =~ s/(\\input)\{($underscorematch+)\}/$punescape->($1,$2)/ge;
}
$line =~ s/\@cindex (.+)/\\index{$1}/g;
+ $line =~ s/\@pindex (.+)/\\index{$1}/g;
$line =~ s/\@url\{($underscorematch+)\}/\\url{$1}/g;
#$line =~ s/\@euro/\\euro/g;
$line =~ s/\s*\@euro\{\}/\~\\textgreek\{\\euro\}/g;
$line =~ s/\@page/\\newpage/g;
$line =~ s/\@file\{($spacematch+)\}/\\file{$1}/g;
- $line =~ s/\@code\{($codematch+)\}/\\code{$1}/g;
+ $line =~ s/\@code\{/\\code{/g;
$line =~ s/\@option\{($codematch+)\}/\\command{$1}/g;
$line =~ s/\@command\{($codematch+)\}/\\command{$1}/g;
$line =~ s/\@ref\{/\\myref\{/g;
#when a myref{} contains underscores remove them
$line =~ s/(\\myref)\{($underscorematch+)\}/$punescape->($1,$2)/ge;
}
+ $line =~ s/\@\@/\@/g;
print $line;
}