From c955f33dbdc190ebb7c2225a87e4b91ead6641b4 Mon Sep 17 00:00:00 2001 From: Philippe Chauvat Date: Tue, 16 Oct 2012 16:18:21 +0200 Subject: [PATCH] PDF, DVI and HTML should work now... --- docs/manuals/bsys-web-mode.tex | 5 +- docs/manuals/en/console/Makefile.in | 71 ++++++++----------- docs/manuals/en/console/Makefile.web | 89 ++++++++++++++++++++++++ docs/manuals/en/developers/Makefile.in | 80 ++++++++++++++-------- docs/manuals/en/developers/Makefile.web | 91 +++++++++++++++++++++++++ docs/manuals/en/main/Makefile.in | 57 +++++++++++----- docs/manuals/en/main/Makefile.web | 89 ++++++++++++++++++++++++ docs/manuals/en/misc/Makefile.in | 62 +++++++++++------ docs/manuals/en/misc/Makefile.web | 90 ++++++++++++++++++++++++ docs/manuals/en/problems/Makefile.in | 59 +++++++++++----- docs/manuals/en/problems/Makefile.web | 89 ++++++++++++++++++++++++ docs/manuals/en/utility/Makefile.in | 59 +++++++++++----- docs/manuals/en/utility/Makefile.web | 89 ++++++++++++++++++++++++ docs/manuals/licences/coverpage.tex | 17 +---- docs/manuals/licences/header-footer.tex | 16 +++++ 15 files changed, 803 insertions(+), 160 deletions(-) create mode 100644 docs/manuals/en/console/Makefile.web create mode 100644 docs/manuals/en/developers/Makefile.web create mode 100644 docs/manuals/en/main/Makefile.web create mode 100644 docs/manuals/en/misc/Makefile.web create mode 100644 docs/manuals/en/problems/Makefile.web create mode 100644 docs/manuals/en/utility/Makefile.web create mode 100644 docs/manuals/licences/header-footer.tex diff --git a/docs/manuals/bsys-web-mode.tex b/docs/manuals/bsys-web-mode.tex index 8525459c..f87b9860 100644 --- a/docs/manuals/bsys-web-mode.tex +++ b/docs/manuals/bsys-web-mode.tex @@ -1,3 +1,2 @@ -\DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.jpeg} -\def\bsysexample{verbatim} -\def\bsysexampleinline{verb} +\graphicspath{{../../../images/png/}{../../../images/hires/}{../../../images/eps/}{../../../images/}} +\DeclareGraphicsExtensions{.eps,.png,.jpg,.jpeg} diff --git a/docs/manuals/en/console/Makefile.in b/docs/manuals/en/console/Makefile.in index 414271e9..01d3e250 100644 --- a/docs/manuals/en/console/Makefile.in +++ b/docs/manuals/en/console/Makefile.in @@ -33,15 +33,12 @@ # # # $ % & ~ _ ^ \ { } # - -IMAGES=../../../images - -DOC=console -MAINDOC=Bacula_Console_Operators_Gu.html - MANUALSDIR=../.. -BSYSMANUALDIR=../../../bsysmanual -COVERSDIR=../../../covers +IMAGES=$(MANUALSDIR)/../images +DOC=console +MAINDOC=Console_Operators_Guide.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers PDFCOVERSDIR=$(COVERSDIR)/pdf SVGCOVERSDIR=$(COVERSDIR)/svg EPSCOVERSDIR=$(COVERSDIR)/eps @@ -53,10 +50,14 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html .PHONY: @@ -93,7 +94,7 @@ epscovers: @echo "Done." commonfiles: - @../../update_version + @$(MANUALSDIR)/update_version @echo "Making version `cat version.tex`" @echo -n "Linking shared files..." @(for L in $(LICENCES); do ln -sf $$L .; done) @@ -114,39 +115,21 @@ pdflatex: pdfcovers pdfimages commonfiles pdflatex -interaction=batchmode ${DOC}.tex pdflatex -interaction=batchmode ${DOC}.tex -html: - @echo " " - @echo "Making html" - @ln -sf $(WEBCOMPILERFILE) $(BSYSCOMPILERFILE) -# @cp -fp ${IMAGES}/*.eps . -# @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \ - -init_file latex2html-init.pl ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done) - @echo "Done making html" - -web: +web: clean @echo "Making web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @rm -f ${DOC}/xp-*.png - @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png - latex2html -split 3 -local_icons -t "Bacula Console and Operators Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make) @echo "Done making web" show: @@ -186,7 +169,9 @@ clean: @rm -f ${DOC}i-*.tex @rm -rf ${DOC} +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f images.pl labels.pl internals.pl @rm -f Makefile version.tex diff --git a/docs/manuals/en/console/Makefile.web b/docs/manuals/en/console/Makefile.web new file mode 100644 index 00000000..e19ac026 --- /dev/null +++ b/docs/manuals/en/console/Makefile.web @@ -0,0 +1,89 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=console +MAINDOC=Console_Operators_Guide.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 3 -local_icons -t "Console and Operators Guide" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/en/developers/Makefile.in b/docs/manuals/en/developers/Makefile.in index c629fb56..07ad0e1e 100644 --- a/docs/manuals/en/developers/Makefile.in +++ b/docs/manuals/en/developers/Makefile.in @@ -38,6 +38,7 @@ IMAGES=../../../images MANUALSDIR=../.. DOC=developers +MAINDOC=Bacula_Developer_Notes.html BSYSMANUALDIR=../../../bsysmanual COVERSDIR=../../../covers PDFCOVERSDIR=$(COVERSDIR)/pdf @@ -51,10 +52,14 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html .PHONY: @@ -132,30 +137,49 @@ html: (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done) @rm -f *.eps *.gif *.jpg *.old -web: - @echo "Making ${DOC} web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @rm -f ${DOC}/* -# @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @(if [ -f ${DOC}/imagename_translations ] ; then \ - ./translate_images.pl --to_meaningful_names ${DOC}/Developer*Guide.html; \ - fi) - @rm -rf ${DOC}/*.html - latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - @cp -f ${DOC}/Bacula_Developer_Notes.html ${DOC}/index.html - @rm -f *.eps *.gif *.jpg ${DOC}/*.eps *.old - @rm -f ${DOC}/idle.png - @rm -f ${DOC}/win32-*.png ${DOC}/wx-console*.png ${DOC}/xp-*.png - @rm -f ${DOC}/*.pl ${DOC}/*.log ${DOC}/*.aux ${DOC}/*.idx - @rm -f ${DOC}/*.out WARNINGS + +web: clean + @echo "Making web" + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make ) + @echo "Done making web" + + +# web: +# @echo "Making ${DOC} web" +# @rm -rf ${DOC} +# @mkdir -p ${DOC} +# @rm -f ${DOC}/* +# # @cp -fp ${IMAGES}/*.eps . +# @rm -f next.eps next.png prev.eps prev.png up.eps up.png +# @(if [ -f ${DOC}/imagename_translations ] ; then \ +# ./translate_images.pl --to_meaningful_names ${DOC}/Developer*Guide.html; \ +# fi) +# @rm -rf ${DOC}/*.html +# latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \ +# -toc_stars -contents_in_nav -init_file latex2html-init.pl \ +# -no_antialias -no_antialias_text \ +# -white -notransparent ${DOC} >tex.out 2>&1 +# @(if [ -f imagename_translations ] ; then \ +# ./translate_images.pl --from_meaningful_names ${DOC}.html; \ +# fi) +# @cp -f ${DOC}/Bacula_Developer_Notes.html ${DOC}/index.html +# @rm -f *.eps *.gif *.jpg ${DOC}/*.eps *.old +# @rm -f ${DOC}/idle.png +# @rm -f ${DOC}/win32-*.png ${DOC}/wx-console*.png ${DOC}/xp-*.png +# @rm -f ${DOC}/*.pl ${DOC}/*.log ${DOC}/*.aux ${DOC}/*.idx +# @rm -f ${DOC}/*.out WARNINGS texcheck: ./check_tex.pl ${DOC}.tex @@ -178,7 +202,7 @@ mini-clean: @rm -f ${DOC}/WARNINGS clean: - @find . -type f -name ${DOC}.mtc* -exec rm {} \; + @find . -type f -name "${DOC}.mtc*" -exec rm {} \; @find . -type l -name "*.tex" -exec rm {} \; @rm -f 1 2 3 @rm -f *.png *.gif *.jpg *.eps @@ -192,7 +216,9 @@ clean: @rm -f images.tex ${DOC}i.tex @rm -f ${DOC}i-*.tex +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f ${DOC}.html ${DOC}.pdf @rm -f Makefile version.tex diff --git a/docs/manuals/en/developers/Makefile.web b/docs/manuals/en/developers/Makefile.web new file mode 100644 index 00000000..54b9722b --- /dev/null +++ b/docs/manuals/en/developers/Makefile.web @@ -0,0 +1,91 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=developers +MAINDOC=Bacula_Developer_Notes.html +BSYSMANUALDIR=../../../bsysmanual +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/en/main/Makefile.in b/docs/manuals/en/main/Makefile.in index b6e6c0fd..3daafe37 100644 --- a/docs/manuals/en/main/Makefile.in +++ b/docs/manuals/en/main/Makefile.in @@ -50,9 +50,14 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *.tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl + first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html .PHONY: @@ -136,21 +141,39 @@ html: (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done) @echo "Done making html" -web: + +web: clean @echo "Making web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make ) @echo "Done making web" +# +# web: +# @echo "Making web" +# @rm -rf ${DOC} +# @mkdir -p ${DOC} +# @cp -fp ${IMAGES}/*.eps . +# @rm -f next.eps next.png prev.eps prev.png up.eps up.png +# latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \ +# -toc_stars -contents_in_nav -init_file latex2html-init.pl \ +# -no_antialias -no_antialias_text \ +# -white -notransparent ${DOC} >tex.out 2>&1 +# @(if [ -f imagename_translations ] ; then \ +# ./translate_images.pl --from_meaningful_names ${DOC}.html; \ +# fi) +# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html +# @echo "Done making web" show: xdvi ${DOC} @@ -176,7 +199,7 @@ mini-clean: clean: - @find . -type f -name ${DOC}.mtc* -exec rm {} \; + @find . -type f -name "${DOC}.mtc*" -exec rm {} \; @find . -type l -name "*.tex" -exec rm {} \; @rm -f 1 2 3 *.tex~ @rm -f *.png *.gif *.jpg *.eps @@ -188,7 +211,9 @@ clean: @rm -f ${DOC}i-*.tex @rm -rf ${DOC} +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f images.pl labels.pl internals.pl @rm -f Makefile version.tex diff --git a/docs/manuals/en/main/Makefile.web b/docs/manuals/en/main/Makefile.web new file mode 100644 index 00000000..7f4161cc --- /dev/null +++ b/docs/manuals/en/main/Makefile.web @@ -0,0 +1,89 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=main +MAINDOC=Bacula_Main_Reference.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/en/misc/Makefile.in b/docs/manuals/en/misc/Makefile.in index 262a4012..2ac9475f 100644 --- a/docs/manuals/en/misc/Makefile.in +++ b/docs/manuals/en/misc/Makefile.in @@ -52,11 +52,14 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex - +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *.tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html .PHONY: @@ -129,23 +132,42 @@ html: (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done) @echo "Done making html" -web: +web: clean @echo "Making web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @rm -f ${DOC}/xp-*.png - @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png - latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}/${MAINDOC}; \ - fi) - @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make ) @echo "Done making web" + + +# web: +# @echo "Making web" +# @rm -rf ${DOC} +# @mkdir -p ${DOC} +# @cp -fp ${IMAGES}/*.eps . +# @rm -f next.eps next.png prev.eps prev.png up.eps up.png +# @rm -f ${DOC}/xp-*.png +# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png +# latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \ +# -toc_stars -contents_in_nav -init_file latex2html-init.pl \ +# -no_antialias -no_antialias_text \ +# -white -notransparent ${DOC} >tex.out 2>&1 +# @(if [ -f imagename_translations ] ; then \ +# ./translate_images.pl --from_meaningful_names ${DOC}/${MAINDOC}; \ +# fi) +# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html +# @echo "Done making web" + show: xdvi ${DOC} @@ -171,7 +193,7 @@ mini-clean: clean: - @find . -type f -name ${DOC}.mtc* -exec rm {} \; + @find . -type f -name "${DOC}.mtc*" -exec rm {} \; @find . -type l -name "*.tex" -exec rm {} \; @rm -f 1 2 3 *.tex~ @rm -f *.png *.gif *.jpg *.eps @@ -183,7 +205,9 @@ clean: @rm -f ${DOC}i-*.tex @rm -rf ${DOC} +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f images.pl labels.pl internals.pl @rm -f Makefile version.tex diff --git a/docs/manuals/en/misc/Makefile.web b/docs/manuals/en/misc/Makefile.web new file mode 100644 index 00000000..63d939dd --- /dev/null +++ b/docs/manuals/en/misc/Makefile.web @@ -0,0 +1,90 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=misc +MAINDOC=Bacula_Miscellaneous_Guide.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/en/problems/Makefile.in b/docs/manuals/en/problems/Makefile.in index b16e30dd..cff5ac9b 100644 --- a/docs/manuals/en/problems/Makefile.in +++ b/docs/manuals/en/problems/Makefile.in @@ -52,10 +52,14 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *.tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html .PHONY: @@ -130,23 +134,40 @@ html: (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done) @echo "Done making html" -web: +web: clean @echo "Making web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @rm -f ${DOC}/xp-*.png - @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png - latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make ) @echo "Done making web" +# web: +# @echo "Making web" +# @rm -rf ${DOC} +# @mkdir -p ${DOC} +# @cp -fp ${IMAGES}/*.eps . +# @rm -f next.eps next.png prev.eps prev.png up.eps up.png +# @rm -f ${DOC}/xp-*.png +# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png +# latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \ +# -toc_stars -contents_in_nav -init_file latex2html-init.pl \ +# -no_antialias -no_antialias_text \ +# -white -notransparent ${DOC} >tex.out 2>&1 +# @(if [ -f imagename_translations ] ; then \ +# ./translate_images.pl --from_meaningful_names ${DOC}.html; \ +# fi) +# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html +# @echo "Done making web" + show: xdvi ${DOC} @@ -173,7 +194,7 @@ mini-clean: clean: - @find . -type f -name ${DOC}.mtc* -exec rm {} \; + @find . -type f -name "${DOC}.mtc*" -exec rm {} \; @find . -type l -name "*.tex" -exec rm {} \; @rm -f 1 2 3 *.tex~ @rm -f *.png *.gif *.jpg *.eps @@ -185,7 +206,9 @@ clean: @rm -f ${DOC}i-*.tex @rm -rf ${DOC} +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f images.pl labels.pl internals.pl @rm -f Makefile version.tex diff --git a/docs/manuals/en/problems/Makefile.web b/docs/manuals/en/problems/Makefile.web new file mode 100644 index 00000000..1c3864b8 --- /dev/null +++ b/docs/manuals/en/problems/Makefile.web @@ -0,0 +1,89 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=problems +MAINDOC=Bacula_Problem_Resolution_G.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/en/utility/Makefile.in b/docs/manuals/en/utility/Makefile.in index e27acf0f..6b948c9c 100644 --- a/docs/manuals/en/utility/Makefile.in +++ b/docs/manuals/en/utility/Makefile.in @@ -51,11 +51,15 @@ BSYSCOMPILERFILE=bsys-compiler-mode.tex PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) +DOCDIR=../${DOC} +TEXFILES=$(wildcard *.tex) +WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl first_rule: all -all: tex pdflatex mini-clean +all: tex pdflatex web mini-clean .SUFFIXES: .tex .html @@ -136,23 +140,40 @@ html: (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done) @echo "Done making html" -web: +web: clean @echo "Making web" - @rm -rf ${DOC} - @mkdir -p ${DOC} - @cp -fp ${IMAGES}/*.eps . - @rm -f next.eps next.png prev.eps prev.png up.eps up.png - @rm -f ${DOC}/xp-*.png - @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png - latex2html -split 3 -local_icons -t "Bacula Utility Programs" -long_titles 4 \ - -toc_stars -contents_in_nav -init_file latex2html-init.pl \ - -no_antialias -no_antialias_text \ - -white -notransparent ${DOC} >tex.out 2>&1 - @(if [ -f imagename_translations ] ; then \ - ./translate_images.pl --from_meaningful_names ${DOC}.html; \ - fi) - @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @rm -rf $(WWWDIR) + @mkdir -p $(WWWDIR) + @echo -"Creating tex files..." + @(for F in $(TEXFILES) ;\ + do \ + cat $$F | sed -e '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' > $(WWWDIR)/$$F ;\ + done) + @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile + @(for F in $(WEBFILESTOLINK);\ + do \ + ln -sf $$F $(WWWDIR)/;\ + done) + (cd $(WWWDIR) ; make ) @echo "Done making web" + +# web: +# @echo "Making web" +# @rm -rf ${DOC} +# @mkdir -p ${DOC} +# @cp -fp ${IMAGES}/*.eps . +# @rm -f next.eps next.png prev.eps prev.png up.eps up.png +# @rm -f ${DOC}/xp-*.png +# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png +# latex2html -split 3 -local_icons -t "Bacula Utility Programs" -long_titles 4 \ +# -toc_stars -contents_in_nav -init_file latex2html-init.pl \ +# -no_antialias -no_antialias_text \ +# -white -notransparent ${DOC} >tex.out 2>&1 +# @(if [ -f imagename_translations ] ; then \ +# ./translate_images.pl --from_meaningful_names ${DOC}.html; \ +# fi) +# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html +# @echo "Done making web" show: xdvi ${DOC} @@ -178,7 +199,7 @@ mini-clean: clean: - @find . -type f -name ${DOC}.mtc* -exec rm {} \; + @find . -type f -name "${DOC}.mtc*" -exec rm {} \; @find . -type l -name "*.tex" -exec rm {} \; @rm -f 1 2 3 *.tex~ @rm -f *.png *.gif *.jpg *.eps @@ -190,7 +211,9 @@ clean: @rm -f ${DOC}i-*.tex @rm -rf ${DOC} +webclean: + @rm -rf $(WWWDIR) -distclean: clean +distclean: webclean clean @rm -f images.pl labels.pl internals.pl @rm -f Makefile version.tex diff --git a/docs/manuals/en/utility/Makefile.web b/docs/manuals/en/utility/Makefile.web new file mode 100644 index 00000000..f625a6c4 --- /dev/null +++ b/docs/manuals/en/utility/Makefile.web @@ -0,0 +1,89 @@ +MANUALSDIR=../.. +IMAGES=$(MANUALSDIR)/../images +DOC=utility +MAINDOC=Bacula_Utility_Programs.html +BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual +COVERSDIR=$(MANUALSDIR)/../covers +PDFCOVERSDIR=$(COVERSDIR)/pdf +SVGCOVERSDIR=$(COVERSDIR)/svg +EPSCOVERSDIR=$(COVERSDIR)/eps +LICENSESDIR=$(MANUALSDIR)/licences +COVERNAME=coverpage-console +BSYSMANNAME=bsysmanual-coverpagebackground +LICENCES=$(wildcard $(LICENSESDIR)/*.tex) +BSYSCOMPILERFILE=bsys-compiler-mode.tex +PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex +TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex +WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex +WWWDIR=../www-$(DOC) + +.SUFFIXES: .tex .html +.PHONY: +.DONTCARE: + +first_rule: all + +all: web clean + +pngimages: + @echo "PNG images" + @echo -n "Generating PNG images..." + @(cd ${IMAGES}/svg ; make png) + @echo "Done." + @echo -n "Linking png images..." + @(for F in $(IMAGES)/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/png/*.png ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "PNG done." + +epsimages: + @echo "EPS images" + @echo -n "Generating EPS images..." + @(cd ${IMAGES}/svg ; make eps) + @echo "Done." + @echo -n "Linking eps images..." + @(for F in $(IMAGES)/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @(for F in $(IMAGES)/eps/*.eps ;\ + do \ + ln -sf $$F ./`basename $$F`; \ + done) + @echo "Done." + @echo "EPS done." + +clean: + @echo -n "Cleaning..." + @find . -type l -iname "*.eps" -exec rm {} \; + @find . -type l -iname "*.png" -exec rm {} \; + @echo "Done." + +commonfiles: + @(for F in $(LICENCES) ;\ + do \ + cat $$F | sed -e '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/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\ + done) + cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex + @echo "Done" + +web: commonfiles epsimages pngimages + @echo "Making web" + @rm -f next.eps next.png prev.eps prev.png up.eps up.png + @rm -f ${DOC}/xp-*.png + @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png + latex2html -split 3 -local_icons -t "Bacula Utility Programs" -long_titles 4 \ + -toc_stars -contents_in_nav -init_file latex2html-init.pl \ + -no_antialias -no_antialias_text \ + -white -notransparent ${DOC} >tex.out 2>&1 + @(if [ -f imagename_translations ] ; then \ + ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \ + fi) + @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html + @echo "Done making web" diff --git a/docs/manuals/licences/coverpage.tex b/docs/manuals/licences/coverpage.tex index 798d414b..0d627a21 100644 --- a/docs/manuals/licences/coverpage.tex +++ b/docs/manuals/licences/coverpage.tex @@ -21,20 +21,5 @@ A copy of the license is included in the section entitled ``GNU Free Documentation License''. \end{small} } -%%% --- Header and footer -\fancypagestyle{plain}{% -\fancyhf{}% -\renewcommand{\footrulewidth}{0.4pt} -\renewcommand{\headrulewidth}{0.4pt} -\fancyhead[LE,RO]{\small{\textit{Enterprise \bsystitle{}}}}% -\fancyhead[RE,LO]{\small{\textit{\textcolor{bsysredtwo}{\leftmark}}}}%Bacula Console and Opertors Guide}}}}% -\fancyfoot[RE,LO]{\small{\href{http://www.baculasystems.com}{www.baculasystems.com} -- \textit{Enterprise \bsystitle}}}% -- DRAFT}}} -\fancyfoot[LE,RO]{\small{\textit{\thepage/\pageref{LastPage}}}} -} - -%%% --- Header and footer -\pagestyle{plain} -\renewcommand{\chaptermark}[1]{\markboth{#1}{}} -\renewcommand{\sectionmark}[1]{\markboth{#1}{}} +\input{header-footer} \maketitle diff --git a/docs/manuals/licences/header-footer.tex b/docs/manuals/licences/header-footer.tex new file mode 100644 index 00000000..5c737625 --- /dev/null +++ b/docs/manuals/licences/header-footer.tex @@ -0,0 +1,16 @@ +%%% --- Header and footer +\fancypagestyle{plain}{% +\fancyhf{}% +\renewcommand{\footrulewidth}{0.4pt} +\renewcommand{\headrulewidth}{0.4pt} +\fancyhead[LE,RO]{\small{\textit{Enterprise \bsystitle{}}}}% +\fancyhead[RE,LO]{\small{\textit{\textcolor{bsysredtwo}{\leftmark}}}}%Bacula Console and Opertors Guide}}}}% +\fancyfoot[RE,LO]{\small{\href{http://www.baculasystems.com}{www.baculasystems.com} +- \textit{Enterprise \bsystitle}}}% -- DRAFT}}} +\fancyfoot[LE,RO]{\small{\textit{\thepage/\pageref{LastPage}}}} +} + +%%% --- Header and footer +\pagestyle{plain} +\renewcommand{\chaptermark}[1]{\markboth{#1}{}} +\renewcommand{\sectionmark}[1]{\markboth{#1}{}} -- 2.39.5