From 91be50f4a279155e5c40ecac709c7fe3023de33c Mon Sep 17 00:00:00 2001 From: Philippe Chauvat Date: Fri, 25 Oct 2013 15:32:07 +0200 Subject: [PATCH] Makefiles have been modified to share the patter-to-handle file which defines itself which sed commands to run when modifying LaTeX code dedicated to latex2html conversion. --- docs/manuals/en/console/Makefile.in | 2 +- docs/manuals/en/developers/Makefile.in | 2 +- docs/manuals/en/main/Makefile.in | 2 +- docs/manuals/en/misc/Makefile.in | 2 +- docs/manuals/en/pattern-to-handle | 19 +++++++++++++++++++ docs/manuals/en/problems/Makefile.in | 2 +- docs/manuals/en/utility/Makefile.in | 2 +- 7 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 docs/manuals/en/pattern-to-handle diff --git a/docs/manuals/en/console/Makefile.in b/docs/manuals/en/console/Makefile.in index 3761a8ea..c8c3c21f 100644 --- a/docs/manuals/en/console/Makefile.in +++ b/docs/manuals/en/console/Makefile.in @@ -130,7 +130,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ diff --git a/docs/manuals/en/developers/Makefile.in b/docs/manuals/en/developers/Makefile.in index ba02f5c1..6b9114b3 100644 --- a/docs/manuals/en/developers/Makefile.in +++ b/docs/manuals/en/developers/Makefile.in @@ -137,7 +137,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ diff --git a/docs/manuals/en/main/Makefile.in b/docs/manuals/en/main/Makefile.in index 600880f7..9a4398f1 100644 --- a/docs/manuals/en/main/Makefile.in +++ b/docs/manuals/en/main/Makefile.in @@ -156,7 +156,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ diff --git a/docs/manuals/en/misc/Makefile.in b/docs/manuals/en/misc/Makefile.in index a81ee6e5..d0a58c95 100644 --- a/docs/manuals/en/misc/Makefile.in +++ b/docs/manuals/en/misc/Makefile.in @@ -151,7 +151,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ diff --git a/docs/manuals/en/pattern-to-handle b/docs/manuals/en/pattern-to-handle new file mode 100644 index 00000000..eb89ce36 --- /dev/null +++ b/docs/manuals/en/pattern-to-handle @@ -0,0 +1,19 @@ +s/\\bsysxrlink{\(.*\)}{\(.*\)}{\(.*\)}{\([^}]*\)}/__XRANCHOR_\1_\2_\3_\4__/g; +s/\\vb{}/\|/g; +s/lstlisting/verbatim/g; +s/lstinline/verb/g; +s/\\lstset.*//g; +s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g; +s/\\input{head.*//g; +s/bsysmanual/book/g; +s/bsysitemize/itemize/g; +s/\\listoffigures//g; +s/\\listoftables//g; +s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g; +s/\\miscman{}/\\mbacula{} Misc Manual/g; +s/\\consoleman{}/\\mbacula{} Console Manual/g; +s/\\mainman{}/\\mbacula{} Main Manual/g; +s/\\devman{}/\\mbacula{} Developers Manual/g; +s/\\utilityman{}/\\mbacula{} Utility programs/g; +s/\\problemsman{}/\\mbacula{} Problem Resolution Guide/g; +s/\\mbacula{}/Bacula Enterprise/g; \ No newline at end of file diff --git a/docs/manuals/en/problems/Makefile.in b/docs/manuals/en/problems/Makefile.in index 3dbbbd8d..2d25fe60 100644 --- a/docs/manuals/en/problems/Makefile.in +++ b/docs/manuals/en/problems/Makefile.in @@ -153,7 +153,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ diff --git a/docs/manuals/en/utility/Makefile.in b/docs/manuals/en/utility/Makefile.in index fd805a1d..d4cb0be9 100644 --- a/docs/manuals/en/utility/Makefile.in +++ b/docs/manuals/en/utility/Makefile.in @@ -157,7 +157,7 @@ web: mini-clean @echo -"Creating tex files..." @(for F in $(TEXFILES) ;\ do \ - cat $$F | sed -e 's/\\vb{}/\|/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\ + cat $$F | sed -f ../pattern-to-handle > $(WWWDIR)/$$F ; \ done) @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile @(for F in $(WEBFILESTOLINK);\ -- 2.39.5