]> git.sur5r.net Git - bacula/docs/commitdiff
PDF, DVI and HTML should work now...
authorPhilippe Chauvat <philippe.chauvat@baculasystems.com>
Tue, 16 Oct 2012 14:18:21 +0000 (16:18 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 16 Oct 2012 14:59:53 +0000 (16:59 +0200)
15 files changed:
docs/manuals/bsys-web-mode.tex
docs/manuals/en/console/Makefile.in
docs/manuals/en/console/Makefile.web [new file with mode: 0644]
docs/manuals/en/developers/Makefile.in
docs/manuals/en/developers/Makefile.web [new file with mode: 0644]
docs/manuals/en/main/Makefile.in
docs/manuals/en/main/Makefile.web [new file with mode: 0644]
docs/manuals/en/misc/Makefile.in
docs/manuals/en/misc/Makefile.web [new file with mode: 0644]
docs/manuals/en/problems/Makefile.in
docs/manuals/en/problems/Makefile.web [new file with mode: 0644]
docs/manuals/en/utility/Makefile.in
docs/manuals/en/utility/Makefile.web [new file with mode: 0644]
docs/manuals/licences/coverpage.tex
docs/manuals/licences/header-footer.tex [new file with mode: 0644]

index 8525459c32ccca88f728b31e1caa9a8865d8b974..f87b9860fb5fe0c8f934ea23875eaa632abc3110 100644 (file)
@@ -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}
index 414271e98b23a06a38cf40263c5cd4c0da0046e6..01d3e250ea168c6d4c72a680b6de90fa654a065c 100644 (file)
 # 
 #    # $ % & ~ _ ^ \ { }
 #
-
-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 (file)
index 0000000..e19ac02
--- /dev/null
@@ -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"
index c629fb56f7841809b3f75e5f30a3dd398e95a985..07ad0e1ef5b3b8c2aaa3ee9414ecc4c4479d94a1 100644 (file)
@@ -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 (file)
index 0000000..54b9722
--- /dev/null
@@ -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"
index b6e6c0fda592a1dfd6603abcc3165406e6fe6cbf..3daafe3731450d6f0f6443dc28e130aa27b7fcba 100644 (file)
@@ -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 (file)
index 0000000..7f4161c
--- /dev/null
@@ -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"
index 262a40122fc042cf7266de4d477865b6a9570742..2ac9475fa1742bc2b24e94efc2e28ade7e629792 100644 (file)
@@ -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 (file)
index 0000000..63d939d
--- /dev/null
@@ -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"
index b16e30dd90a7e2916f39cef4425c5acfa08b2bb8..cff5ac9b4827f26108fce57ba688dba4d277e940 100644 (file)
@@ -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 (file)
index 0000000..1c3864b
--- /dev/null
@@ -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"
index e27acf0f3a0a839943a7c398b99f9b500b0b2d7f..6b948c9c13a1b846697f1d23910c2db5df5557ec 100644 (file)
@@ -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 (file)
index 0000000..f625a6c
--- /dev/null
@@ -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"
index 798d414bd95b2f68139ed615ccbbb27b84444737..0d627a2104b8a536d906a597220484bcf62cb7b7 100644 (file)
   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 (file)
index 0000000..5c73762
--- /dev/null
@@ -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}{}}