]> git.sur5r.net Git - bacula/docs/commitdiff
New material to put back Web building
authorPhilippe Chauvat <philippe@yverdon.teicee.fr>
Fri, 7 Dec 2012 15:24:51 +0000 (16:24 +0100)
committerEric Bollengier <eric@baculasystems.com>
Mon, 10 Dec 2012 09:16:34 +0000 (10:16 +0100)
111 files changed:
docs/Makefile.in
docs/manuals/en/console/Makefile.in
docs/manuals/en/console/web.makefile [new file with mode: 0644]
docs/manuals/en/css/bsys.css [new file with mode: 0644]
docs/manuals/en/css/developers.css [new file with mode: 0644]
docs/manuals/en/css/main.css [new file with mode: 0644]
docs/manuals/en/developers/Makefile.in
docs/manuals/en/developers/web.makefile [new file with mode: 0644]
docs/manuals/en/images/BackupOverWan1.png [new file with mode: 0644]
docs/manuals/en/images/Bacula-tray-monitor.png [new file with mode: 0644]
docs/manuals/en/images/Conf-Diagram.png [new file with mode: 0644]
docs/manuals/en/images/Exchange.png [new file with mode: 0644]
docs/manuals/en/images/Exchange1.png [new file with mode: 0644]
docs/manuals/en/images/Exchange2.png [new file with mode: 0644]
docs/manuals/en/images/access-is-denied.png [new file with mode: 0644]
docs/manuals/en/images/back.png [new file with mode: 0644]
docs/manuals/en/images/bacula-applications.png [new file with mode: 0644]
docs/manuals/en/images/bacula-logo.png [new file with mode: 0644]
docs/manuals/en/images/bacula-objects.png [new file with mode: 0644]
docs/manuals/en/images/bacula-usage.png [new file with mode: 0644]
docs/manuals/en/images/baculasystems-logo.png [new file with mode: 0644]
docs/manuals/en/images/bat-brestore.png [new file with mode: 0644]
docs/manuals/en/images/bat-mediaview.png [new file with mode: 0644]
docs/manuals/en/images/bat11.png [new file with mode: 0644]
docs/manuals/en/images/bat12.png [new file with mode: 0644]
docs/manuals/en/images/bat13.png [new file with mode: 0644]
docs/manuals/en/images/bat14.png [new file with mode: 0644]
docs/manuals/en/images/bat15.png [new file with mode: 0644]
docs/manuals/en/images/bat16.png [new file with mode: 0644]
docs/manuals/en/images/bat_icon.png [new file with mode: 0644]
docs/manuals/en/images/bclogo.png [new file with mode: 0644]
docs/manuals/en/images/bimagemgr1.png [new file with mode: 0644]
docs/manuals/en/images/bimagemgr2.png [new file with mode: 0644]
docs/manuals/en/images/bimagemgr3.png [new file with mode: 0644]
docs/manuals/en/images/bsys-doctitle.png [new file with mode: 0644]
docs/manuals/en/images/bsys-hindex.png [new file with mode: 0644]
docs/manuals/en/images/bsys-logo.png [new file with mode: 0644]
docs/manuals/en/images/bweb-index.png [new file with mode: 0644]
docs/manuals/en/images/bweb-report.png [new file with mode: 0644]
docs/manuals/en/images/bweb1.png [new file with mode: 0644]
docs/manuals/en/images/bweb2.png [new file with mode: 0644]
docs/manuals/en/images/bweb3.png [new file with mode: 0644]
docs/manuals/en/images/bweb4.png [new file with mode: 0644]
docs/manuals/en/images/bweb5.png [new file with mode: 0644]
docs/manuals/en/images/bweb6.png [new file with mode: 0644]
docs/manuals/en/images/confirm.png [new file with mode: 0644]
docs/manuals/en/images/contents.png [new file with mode: 0644]
docs/manuals/en/images/different_time.png [new file with mode: 0644]
docs/manuals/en/images/down.png [new file with mode: 0644]
docs/manuals/en/images/duplicate-real.png [new file with mode: 0644]
docs/manuals/en/images/duplicate.png [new file with mode: 0644]
docs/manuals/en/images/error.png [new file with mode: 0644]
docs/manuals/en/images/file.png [new file with mode: 0644]
docs/manuals/en/images/flow.png [new file with mode: 0644]
docs/manuals/en/images/git-edit-commit.png [new file with mode: 0644]
docs/manuals/en/images/home.png [new file with mode: 0644]
docs/manuals/en/images/idle.png [new file with mode: 0644]
docs/manuals/en/images/img25.png [new file with mode: 0644]
docs/manuals/en/images/index.png [new file with mode: 0644]
docs/manuals/en/images/k7-error.png [new file with mode: 0644]
docs/manuals/en/images/k7-idle.png [new file with mode: 0644]
docs/manuals/en/images/k7-ok.png [new file with mode: 0644]
docs/manuals/en/images/md5.png [new file with mode: 0644]
docs/manuals/en/images/menu.png [new file with mode: 0644]
docs/manuals/en/images/next.png [new file with mode: 0644]
docs/manuals/en/images/next_g.png [new file with mode: 0644]
docs/manuals/en/images/nsis.png [new file with mode: 0644]
docs/manuals/en/images/philosophical-gnu-sm.png [new file with mode: 0644]
docs/manuals/en/images/prev.png [new file with mode: 0644]
docs/manuals/en/images/prev_g.png [new file with mode: 0644]
docs/manuals/en/images/properties-security-advanced-owner.png [new file with mode: 0644]
docs/manuals/en/images/properties-security.png [new file with mode: 0644]
docs/manuals/en/images/right.png [new file with mode: 0644]
docs/manuals/en/images/running.png [new file with mode: 0644]
docs/manuals/en/images/smartall.png [new file with mode: 0644]
docs/manuals/en/images/thanks.png [new file with mode: 0644]
docs/manuals/en/images/tray-icon.png [new file with mode: 0644]
docs/manuals/en/images/tray-monitor.png [new file with mode: 0644]
docs/manuals/en/images/tray-monitor1.png [new file with mode: 0644]
docs/manuals/en/images/up.png [new file with mode: 0644]
docs/manuals/en/images/up_g.png [new file with mode: 0644]
docs/manuals/en/images/view-only.png [new file with mode: 0644]
docs/manuals/en/images/win32-config.png [new file with mode: 0644]
docs/manuals/en/images/win32-finish.png [new file with mode: 0644]
docs/manuals/en/images/win32-installation-type.png [new file with mode: 0644]
docs/manuals/en/images/win32-installing.png [new file with mode: 0644]
docs/manuals/en/images/win32-location.png [new file with mode: 0644]
docs/manuals/en/images/win32-menu.png [new file with mode: 0644]
docs/manuals/en/images/win32-nsis.png [new file with mode: 0644]
docs/manuals/en/images/win32-pkg.png [new file with mode: 0644]
docs/manuals/en/images/win32-service-ok.png [new file with mode: 0644]
docs/manuals/en/images/win32-service.png [new file with mode: 0644]
docs/manuals/en/images/win32-start.png [new file with mode: 0644]
docs/manuals/en/images/win32-welcome.png [new file with mode: 0644]
docs/manuals/en/images/wx-console-restore1.png [new file with mode: 0644]
docs/manuals/en/images/wx-console-restore2.png [new file with mode: 0644]
docs/manuals/en/images/xp-control-panel.png [new file with mode: 0644]
docs/manuals/en/images/xp-windows-firewall-advanced-settings-after.png [new file with mode: 0644]
docs/manuals/en/images/xp-windows-firewall-advanced-settings-before.png [new file with mode: 0644]
docs/manuals/en/images/xp-windows-firewall-advanced-settings-service-details.png [new file with mode: 0644]
docs/manuals/en/images/xp-windows-firewall-advanced.png [new file with mode: 0644]
docs/manuals/en/images/xp-windows-firewall.png [new file with mode: 0644]
docs/manuals/en/js/bsys.js [new file with mode: 0644]
docs/manuals/en/main/Makefile.in
docs/manuals/en/main/web.makefile [new file with mode: 0644]
docs/manuals/en/misc/Makefile.in
docs/manuals/en/misc/web.makefile [new file with mode: 0644]
docs/manuals/en/problems/Makefile.in
docs/manuals/en/problems/web.makefile [new file with mode: 0644]
docs/manuals/en/utility/Makefile.in
docs/manuals/en/utility/web.makefile [new file with mode: 0644]

index b9413e2e71d69ad58ef7a1137255b11576a5bfb9..558e24399192b9dc7b3830672e4c0dcaceffabe8 100644 (file)
@@ -11,6 +11,8 @@ BACULASRC =   @bacula@
 basedir = ..
 topdir = ..
 thisdir = docs
+toolsdir = ./tools
+TRANSLATE=./htmls.sh
 
 #
 # Distribution variables
@@ -29,7 +31,8 @@ es_dirs = manuals/es/console manuals/es/developers manuals/es/main \
 fr_dirs = manuals/fr/console manuals/fr/developers manuals/fr/main \
   manuals/fr/misc manuals/fr/problems manuals/fr/utility
 
-all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs}
+image_dirs = images/svg
+all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs} ${image_dirs}
 
 DIST     = Makefile.in
 
@@ -38,26 +41,44 @@ DIST          = Makefile.in
 en: all
 
 all:    templates external-references
+       @echo " "
+       @echo "Generating PDF manuals..."
        @for I in ${en_dirs}; \
          do (cd $$I; echo "==>Entering directory `pwd`"; \
-             $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+             $(MAKE) pdflatex || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; exit 1;)); \
+       done
+       @for I in ${en_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) web || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
                            echo ""; echo ""; exit 1;)); \
        done
+       @echo " "
+       @echo "Creating Web documentation..."
+       @(cd $(toolsdir) ; $(TRANSLATE))
        @echo "All manuals built ..."
 
 templates:
+       @echo " "
        @echo -n "Linking templates.."
-       mkdir -p ~/texmf/tex/latex/bsys/
-       if [ ! -e  ~/texmf/tex/latex/bsys/bsysmanual ] || [ -h ~/texmf/tex/latex/bsys/bsysmanual ]; \
+       @mkdir -p ~/texmf/tex/latex/bsys/
+       @if [ ! -e  ~/texmf/tex/latex/bsys/bsysmanual ] || [ -h ~/texmf/tex/latex/bsys/bsysmanual ]; \
           then\
                ln -sf `pwd`/bsysmanual ~/texmf/tex/latex/bsys/;\
        fi
        @echo "Done"
 
 external-references:
+       @echo " "
        @echo -n "Building external references file..."
-       find ${en_dirs} -mindepth 0 -maxdepth 1 -name "*tex" -exec grep -q '\label' {} \; -print| awk -F/ '{ print "\\externaldocument[" $$3 "-]{../"$$3"/"$$4"}"}'|sed -e 's/.tex//g' > `pwd`/bsysmanual/external-references.tex
-       @echo "Done."
+       @find ${en_dirs} -mindepth 0 -maxdepth 1 -name "*tex" -exec grep -q '\label' {} \; -print| awk -F/ '{ print "\\externaldocument[" $$3 "-]{../"$$3"/"$$4"}"}'|sed -e 's/.tex//g' > `pwd`/bsysmanual/external-references.tex
+       @for I in ${en_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; exit 1;)); \
+       done
+       @echo "All manuals built ..."
+       @echo "External references for all manuals built."
 
 bacula-web:
        (cd bacula-web; make)
index 01d3e250ea168c6d4c72a680b6de90fa654a065c..0c962c5cd97c3401e9d13e0f61a38bea96cdf324 100644 (file)
@@ -54,39 +54,47 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
-
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
+PDFOUTPUT="> $(DOC).out 2>&1"
+MAKEFORWEB=$(DOCDIR)/web.makefile
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 .SUFFIXES:     .tex .html
 .PHONY:
 .DONTCARE:
 
 pdfcovers:
+       @echo " "
        @echo -n "Linking coverpage and background PDF format..."
        @(cd $(SVGCOVERSDIR) ; make pdf)
        @ln -sf `pwd`/${PDFCOVERSDIR}/${COVERNAME}.pdf `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
        @echo "Done."
 
 pdfimages: 
-       @echo "Generating PDF images..."
+       @echo " "
+       @echo "Converting SVG to PDF images..."
        @(cd ${IMAGES}/svg ; make pdf)
        @echo "Done."
 
 pngimages:
-       @echo "Generating PNG images..."
+       @echo " "
+       @echo "Converting SVG to PNG images..."
        @(cd ${IMAGES}/svg ; make png)
        @echo "Done."
 
 epsimages:
-       @echo "Generating EPS images..."
+       @echo " "
+       @echo "Converting SVG to EPS images..."
        @(cd ${IMAGES}/svg ; make eps)
        @rm -rf ${IMAGES}/png
        @rm -rf ${IMAGES}/pdf
        @echo "Done."
 
 epscovers:
+       @echo " "
        @echo -n "Linking coverpage and background EPS format..."
        @(cd $(SVGCOVERSDIR) ; make eps)
        @ln -sf `pwd`/${EPSCOVERSDIR}/${COVERNAME}.eps `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.eps
@@ -94,37 +102,37 @@ epscovers:
        @echo "Done."
 
 commonfiles:
-       @$(MANUALSDIR)/update_version
+       @/bin/sh $(MANUALSDIR)/update_version
        @echo "Making version `cat version.tex`"
        @echo -n "Linking shared files..."
        @(for L in $(LICENCES); do ln -sf $$L .; done)
        @echo "Done"
 
-tex:   epscovers epsimages commonfiles
-       @ln -sf $(TEXCOMPILERFILE) $(BSYSCOMPILERFILE)
-       @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
-            ${DOC}i-console.tex ${DOC}i-general.tex
-       latex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       latex -interaction=batchmode ${DOC}.tex
-
-pdflatex: pdfcovers pdfimages commonfiles
+pdflatex: external-references
+       @echo " "
+       @echo "Generating the PDF version of $(DOC)"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex $(PDFOUTPUT)
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex $(PDFOUTPUT)
+       @echo "$(DOC).pdf generated."
+
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex $(PDFOUTPUT)
+       @echo "$(DOC) external references done."
 
-web: clean
+web: mini-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 ;\
+       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;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile
        @(for F in $(WEBFILESTOLINK);\
        do \
        ln -sf $$F $(WWWDIR)/;\
@@ -144,7 +152,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -172,6 +180,6 @@ clean:
 webclean:
        @rm -rf $(WWWDIR)
 
-distclean:  webclean clean
+distclean: webclean clean
        @rm -f images.pl labels.pl internals.pl
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/console/web.makefile b/docs/manuals/en/console/web.makefile
new file mode 100644 (file)
index 0000000..7ba4a61
--- /dev/null
@@ -0,0 +1,92 @@
+#
+# Makefile to be placed into to the corresponding www directory
+# ../www-console
+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/css/bsys.css b/docs/manuals/en/css/bsys.css
new file mode 100644 (file)
index 0000000..49d8d56
--- /dev/null
@@ -0,0 +1,133 @@
+.bsys_mainpageclass {
+    width: 100% ;
+}
+.bsys_topclass {
+    margin: 0px ;
+    padding: 0px ;
+    padding-bottom: 10px ;
+    background: black ;
+//lightgray ;
+}
+#bsys_logo {
+    padding-top: 10px ;
+    padding-left: 20px ;
+    padding-bottom: 2px ;
+}
+#bsys_doctitle {
+    margin-right: 20px ;
+    margin-top: 45px ;
+    float: right ;
+}
+div.leftnavigationid li {
+    list-style-type: none ;
+}
+.bsys_breadnsearchclass {
+    background: #ef0020 ;
+//#ef0020 ;
+    color: white ;
+    padding-right: 10px ;
+    padding-left: 10px ;
+    padding-top: 15px ;
+    padding-bottom: 2px ;
+}
+.bsys_breadcrumbscontentclass {
+    color: white ;
+    font-size: 0.8em ;
+}
+.bsys_breadcrumbscontentclass li {
+    display: inline ;
+}
+.bsys_breadcrumbscontentclass li:before {
+    content: " / " ;
+    color: white ;
+    font-style: normal ;
+    font-weight: bold ;
+}
+.bsys_breadcrumbscontentclass a {
+    color:white ;
+}
+.bsys_searchclass {
+    float: right ;    
+    font-weight: bold ;
+    font-style: italic ;
+    font-size: 0.95em ;
+}
+.bsys_searchtitleclass {
+    padding-right: 8px ;
+}
+.expochar {
+    font-size: 0.9em ;
+    vertical-align: top ;
+}
+.bsys_leftnavigationclass {
+    float: left ;
+    width: 300px ;
+    padding-right: 15px ;
+    font-size: 0.8em ;
+    border-right-style: solid ;
+    border-right-color: #ef0020 ;
+    border-right-width: 1px ;
+}
+.bsys_contentclass {
+    width: 60% ;
+    margin-left: 400px ;
+    padding-left: 20px ;
+    margin-right: 20px ;
+}
+.author_info {
+    text-align: center ;
+}
+.xhuge {
+    font-weight: bold ;
+    font-size: 1.4em ;
+    text-align: center ;
+    display: block ;
+}
+address {
+    text-align: right ;
+}
+.bsys_leftnavigationclass a {
+    color: #666666 ;
+    font-weight: bold ;
+    font-size: 0.85em ;
+    text-decoration: none ;
+}
+.bsys_leftnavigationclass li {
+    list-style-type: none ;
+    list-style-image: url(../images/right.png);
+    /* border-style: solid ; */
+    /* border-color: green ; */
+    /* border-width: 1px ; */
+}
+.expandingMenuNotSelected {
+}
+.expandingMenuSelected {
+}
+.bsys_contentclass p {
+    text-align: justify;
+}
+pre {
+    background: #EEEEEE ;
+    font-family: monospace ;
+    font-size: 0.9em ;
+    letter-spacing:0.1em ;
+}
+h1 {
+    color: #ef0020 ;
+}
+dt {
+    color: #333333 ;
+    text-decoration: underline ;
+    letter-spacing: 0.05em;
+}
+table {
+    width: 100% ;
+    border-style: none ;
+}
+td {
+    text-align: center ;
+    border-style: none ;
+}
+tr {
+    background: #FFE6E3 ;
+}
\ No newline at end of file
diff --git a/docs/manuals/en/css/developers.css b/docs/manuals/en/css/developers.css
new file mode 100644 (file)
index 0000000..d01548f
--- /dev/null
@@ -0,0 +1,51 @@
+/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */
+.MATH    { font-family: "Century Schoolbook", serif; }
+.MATH I  { font-family: "Century Schoolbook", serif; font-style: italic }
+.BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold }
+
+/* implement both fixed-size and relative sizes */
+SMALL.XTINY            { font-size : xx-small }
+SMALL.TINY             { font-size : x-small  }
+SMALL.SCRIPTSIZE       { font-size : smaller  }
+SMALL.FOOTNOTESIZE     { font-size : small    }
+SMALL.SMALL            {  }
+BIG.LARGE              {  }
+BIG.XLARGE             { font-size : large    }
+BIG.XXLARGE            { font-size : x-large  }
+BIG.HUGE               { font-size : larger   }
+BIG.XHUGE              { font-size : xx-large }
+
+/* heading styles */
+H1             {  }
+H2             {  }
+H3             {  }
+H4             {  }
+H5             {  }
+
+/* mathematics styles */
+DIV.displaymath                { }     /* math displays */
+TD.eqno                        { }     /* equation-number cells */
+
+
+/* document-specific styles come next */
+PRE.preform            {   }
+DIV.small              {   }
+DIV.quote              {   }
+SPAN.it                {   }
+DIV.navigation         {   }
+SPAN.tt                {   }
+SPAN.bf                {   }
+SPAN.textbf            { font-weight: bold  }
+SPAN.arabic            {   }
+SPAN.textit            { font-style: italic  }
+SPAN.textsl            { font-style: italic  }
+#txt3455               { text-decoration: underline;  }
+#txt3457               { text-decoration: underline;  }
+#txt3459               { text-decoration: underline;  }
+#txt3461               { text-decoration: underline;  }
+#txt3463               { text-decoration: underline;  }
+#txt3465               { text-decoration: underline;  }
+#txt3467               { text-decoration: underline;  }
+#txt3471               { text-decoration: underline;  }
+#txt3472               { text-decoration: underline;  }
+#txt3477               { text-decoration: underline;  }
diff --git a/docs/manuals/en/css/main.css b/docs/manuals/en/css/main.css
new file mode 100644 (file)
index 0000000..22f12c0
--- /dev/null
@@ -0,0 +1,40 @@
+/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */
+.MATH    { font-family: "Century Schoolbook", serif; }
+.MATH I  { font-family: "Century Schoolbook", serif; font-style: italic }
+.BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold }
+
+/* implement both fixed-size and relative sizes */
+SMALL.XTINY            { font-size : xx-small }
+SMALL.TINY             { font-size : x-small  }
+SMALL.SCRIPTSIZE       { font-size : smaller  }
+SMALL.FOOTNOTESIZE     { font-size : small    }
+SMALL.SMALL            {  }
+BIG.LARGE              {  }
+BIG.XLARGE             { font-size : large    }
+BIG.XXLARGE            { font-size : x-large  }
+BIG.HUGE               { font-size : larger   }
+BIG.XHUGE              { font-size : xx-large }
+
+/* heading styles */
+H1             {  }
+H2             {  }
+H3             {  }
+H4             {  }
+H5             {  }
+
+/* mathematics styles */
+DIV.displaymath                { }     /* math displays */
+TD.eqno                        { }     /* equation-number cells */
+
+
+/* document-specific styles come next */
+PRE.preform            {   }
+DIV.quote              {   }
+DIV.center             {   }
+SPAN.it                {   }
+DIV.navigation         {   }
+SPAN.bf                {   }
+SPAN.textbf            { font-weight: bold  }
+SPAN.arabic            {   }
+SPAN.textit            { font-style: italic  }
+SPAN.textsl            { font-style: italic  }
index 07ad0e1ef5b3b8c2aaa3ee9414ecc4c4479d94a1..2efe1865e8ea5b4a15af3ca696e1abe4c32ef50b 100644 (file)
 #    # $ % & ~ _ ^ \ { }
 #
 
-IMAGES=../../../images
+
 
 MANUALSDIR=../..
+IMAGES=$(MANUALSDIR)/../images
 DOC=developers
-MAINDOC=Bacula_Developer_Notes.html
+MAINDOC=Developer_s_Guide.html
 BSYSMANUALDIR=../../../bsysmanual
 COVERSDIR=../../../covers
 PDFCOVERSDIR=$(COVERSDIR)/pdf
@@ -56,10 +57,12 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
-
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
+MAKEFORWEB=$(DOCDIR)/web.makefile
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 .SUFFIXES:     .tex .html
 .PHONY:
@@ -110,44 +113,33 @@ tex:      epscovers epsimages commonfiles
        makeindex ${DOC}.idx >/dev/null 2>/dev/null
        -latex -interaction=batchmode ${DOC}.tex
 
-pdflatex: pdfcovers pdfimages commonfiles
+
+pdflatex: external-references
+       @echo " "
+       @echo "Generating the PDF version of $(DOC)"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
+
+
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       makeindex ${DOC}.ddx -o ${DOC}.dnd >/dev/null 2>/dev/null
-       makeindex ${DOC}.fdx -o ${DOC}.fnd >/dev/null 2>/dev/null
-       makeindex ${DOC}.sdx -o ${DOC}.snd >/dev/null 2>/dev/null
-       makeindex ${DOC}.cdx -o ${DOC}.cnd >/dev/null 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
-
-html:
-       @echo "Making ${DOC} html"
-#      @cp -fp ${IMAGES}/*.eps .
-       @rm -f next.eps next.png prev.eps prev.png up.eps up.png
-       @touch ${DOC}.html
-       @(if [ -f imagename_translations ] ; then \
-           ./translate_images.pl --from_meaningful_names ${DOC}.html; \
-        fi)
-       latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
-               ${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} . 2>/dev/null; done)
-       @rm -f *.eps *.gif *.jpg *.old
-
-
-web: clean
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC) external references done."
+
+web: mini-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 ;\
+       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;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile
        @(for F in $(WEBFILESTOLINK);\
        do \
        ln -sf $$F $(WWWDIR)/;\
@@ -190,7 +182,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -206,7 +198,7 @@ clean:
        @find . -type l -name "*.tex" -exec rm {} \;
        @rm -f 1 2 3
        @rm -f *.png *.gif *.jpg *.eps
-       @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
        @rm -f *.html *.backup *.pdf *.ps *.dvi *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd imagename_translations
@@ -220,5 +212,6 @@ webclean:
        @rm -rf $(WWWDIR)
 
 distclean:  webclean clean
+       @rm -f *.pdf
        @rm -f ${DOC}.html ${DOC}.pdf
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/developers/web.makefile b/docs/manuals/en/developers/web.makefile
new file mode 100644 (file)
index 0000000..274809e
--- /dev/null
@@ -0,0 +1,91 @@
+MANUALSDIR=../..
+IMAGES=$(MANUALSDIR)/../images
+DOC=developers
+MAINDOC=Developer_s_Guide.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 3 -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/images/BackupOverWan1.png b/docs/manuals/en/images/BackupOverWan1.png
new file mode 100644 (file)
index 0000000..7439b25
Binary files /dev/null and b/docs/manuals/en/images/BackupOverWan1.png differ
diff --git a/docs/manuals/en/images/Bacula-tray-monitor.png b/docs/manuals/en/images/Bacula-tray-monitor.png
new file mode 100644 (file)
index 0000000..a053e78
Binary files /dev/null and b/docs/manuals/en/images/Bacula-tray-monitor.png differ
diff --git a/docs/manuals/en/images/Conf-Diagram.png b/docs/manuals/en/images/Conf-Diagram.png
new file mode 100644 (file)
index 0000000..7000a71
Binary files /dev/null and b/docs/manuals/en/images/Conf-Diagram.png differ
diff --git a/docs/manuals/en/images/Exchange.png b/docs/manuals/en/images/Exchange.png
new file mode 100644 (file)
index 0000000..85f0ad4
Binary files /dev/null and b/docs/manuals/en/images/Exchange.png differ
diff --git a/docs/manuals/en/images/Exchange1.png b/docs/manuals/en/images/Exchange1.png
new file mode 100644 (file)
index 0000000..0d8e0d6
Binary files /dev/null and b/docs/manuals/en/images/Exchange1.png differ
diff --git a/docs/manuals/en/images/Exchange2.png b/docs/manuals/en/images/Exchange2.png
new file mode 100644 (file)
index 0000000..dc1a6ed
Binary files /dev/null and b/docs/manuals/en/images/Exchange2.png differ
diff --git a/docs/manuals/en/images/access-is-denied.png b/docs/manuals/en/images/access-is-denied.png
new file mode 100644 (file)
index 0000000..1525ab3
Binary files /dev/null and b/docs/manuals/en/images/access-is-denied.png differ
diff --git a/docs/manuals/en/images/back.png b/docs/manuals/en/images/back.png
new file mode 100644 (file)
index 0000000..e416cc3
Binary files /dev/null and b/docs/manuals/en/images/back.png differ
diff --git a/docs/manuals/en/images/bacula-applications.png b/docs/manuals/en/images/bacula-applications.png
new file mode 100644 (file)
index 0000000..cd50cd3
Binary files /dev/null and b/docs/manuals/en/images/bacula-applications.png differ
diff --git a/docs/manuals/en/images/bacula-logo.png b/docs/manuals/en/images/bacula-logo.png
new file mode 100644 (file)
index 0000000..f64d428
Binary files /dev/null and b/docs/manuals/en/images/bacula-logo.png differ
diff --git a/docs/manuals/en/images/bacula-objects.png b/docs/manuals/en/images/bacula-objects.png
new file mode 100644 (file)
index 0000000..b985847
Binary files /dev/null and b/docs/manuals/en/images/bacula-objects.png differ
diff --git a/docs/manuals/en/images/bacula-usage.png b/docs/manuals/en/images/bacula-usage.png
new file mode 100644 (file)
index 0000000..5a3437e
Binary files /dev/null and b/docs/manuals/en/images/bacula-usage.png differ
diff --git a/docs/manuals/en/images/baculasystems-logo.png b/docs/manuals/en/images/baculasystems-logo.png
new file mode 100644 (file)
index 0000000..b3f8679
Binary files /dev/null and b/docs/manuals/en/images/baculasystems-logo.png differ
diff --git a/docs/manuals/en/images/bat-brestore.png b/docs/manuals/en/images/bat-brestore.png
new file mode 100644 (file)
index 0000000..399bcf9
Binary files /dev/null and b/docs/manuals/en/images/bat-brestore.png differ
diff --git a/docs/manuals/en/images/bat-mediaview.png b/docs/manuals/en/images/bat-mediaview.png
new file mode 100644 (file)
index 0000000..7489b73
Binary files /dev/null and b/docs/manuals/en/images/bat-mediaview.png differ
diff --git a/docs/manuals/en/images/bat11.png b/docs/manuals/en/images/bat11.png
new file mode 100644 (file)
index 0000000..58e9b2c
Binary files /dev/null and b/docs/manuals/en/images/bat11.png differ
diff --git a/docs/manuals/en/images/bat12.png b/docs/manuals/en/images/bat12.png
new file mode 100644 (file)
index 0000000..ae34cef
Binary files /dev/null and b/docs/manuals/en/images/bat12.png differ
diff --git a/docs/manuals/en/images/bat13.png b/docs/manuals/en/images/bat13.png
new file mode 100644 (file)
index 0000000..e50b84f
Binary files /dev/null and b/docs/manuals/en/images/bat13.png differ
diff --git a/docs/manuals/en/images/bat14.png b/docs/manuals/en/images/bat14.png
new file mode 100644 (file)
index 0000000..88c98f9
Binary files /dev/null and b/docs/manuals/en/images/bat14.png differ
diff --git a/docs/manuals/en/images/bat15.png b/docs/manuals/en/images/bat15.png
new file mode 100644 (file)
index 0000000..c590fb5
Binary files /dev/null and b/docs/manuals/en/images/bat15.png differ
diff --git a/docs/manuals/en/images/bat16.png b/docs/manuals/en/images/bat16.png
new file mode 100644 (file)
index 0000000..6da47f6
Binary files /dev/null and b/docs/manuals/en/images/bat16.png differ
diff --git a/docs/manuals/en/images/bat_icon.png b/docs/manuals/en/images/bat_icon.png
new file mode 100644 (file)
index 0000000..c017f9e
Binary files /dev/null and b/docs/manuals/en/images/bat_icon.png differ
diff --git a/docs/manuals/en/images/bclogo.png b/docs/manuals/en/images/bclogo.png
new file mode 100644 (file)
index 0000000..6fdebcf
Binary files /dev/null and b/docs/manuals/en/images/bclogo.png differ
diff --git a/docs/manuals/en/images/bimagemgr1.png b/docs/manuals/en/images/bimagemgr1.png
new file mode 100644 (file)
index 0000000..b19d56c
Binary files /dev/null and b/docs/manuals/en/images/bimagemgr1.png differ
diff --git a/docs/manuals/en/images/bimagemgr2.png b/docs/manuals/en/images/bimagemgr2.png
new file mode 100644 (file)
index 0000000..de32581
Binary files /dev/null and b/docs/manuals/en/images/bimagemgr2.png differ
diff --git a/docs/manuals/en/images/bimagemgr3.png b/docs/manuals/en/images/bimagemgr3.png
new file mode 100644 (file)
index 0000000..749c4b7
Binary files /dev/null and b/docs/manuals/en/images/bimagemgr3.png differ
diff --git a/docs/manuals/en/images/bsys-doctitle.png b/docs/manuals/en/images/bsys-doctitle.png
new file mode 100644 (file)
index 0000000..08d73c0
Binary files /dev/null and b/docs/manuals/en/images/bsys-doctitle.png differ
diff --git a/docs/manuals/en/images/bsys-hindex.png b/docs/manuals/en/images/bsys-hindex.png
new file mode 100644 (file)
index 0000000..ce3cfbc
Binary files /dev/null and b/docs/manuals/en/images/bsys-hindex.png differ
diff --git a/docs/manuals/en/images/bsys-logo.png b/docs/manuals/en/images/bsys-logo.png
new file mode 100644 (file)
index 0000000..cc22125
Binary files /dev/null and b/docs/manuals/en/images/bsys-logo.png differ
diff --git a/docs/manuals/en/images/bweb-index.png b/docs/manuals/en/images/bweb-index.png
new file mode 100644 (file)
index 0000000..cda4d86
Binary files /dev/null and b/docs/manuals/en/images/bweb-index.png differ
diff --git a/docs/manuals/en/images/bweb-report.png b/docs/manuals/en/images/bweb-report.png
new file mode 100644 (file)
index 0000000..8f7c76b
Binary files /dev/null and b/docs/manuals/en/images/bweb-report.png differ
diff --git a/docs/manuals/en/images/bweb1.png b/docs/manuals/en/images/bweb1.png
new file mode 100644 (file)
index 0000000..343748e
Binary files /dev/null and b/docs/manuals/en/images/bweb1.png differ
diff --git a/docs/manuals/en/images/bweb2.png b/docs/manuals/en/images/bweb2.png
new file mode 100644 (file)
index 0000000..5c566cc
Binary files /dev/null and b/docs/manuals/en/images/bweb2.png differ
diff --git a/docs/manuals/en/images/bweb3.png b/docs/manuals/en/images/bweb3.png
new file mode 100644 (file)
index 0000000..82927f9
Binary files /dev/null and b/docs/manuals/en/images/bweb3.png differ
diff --git a/docs/manuals/en/images/bweb4.png b/docs/manuals/en/images/bweb4.png
new file mode 100644 (file)
index 0000000..82b3910
Binary files /dev/null and b/docs/manuals/en/images/bweb4.png differ
diff --git a/docs/manuals/en/images/bweb5.png b/docs/manuals/en/images/bweb5.png
new file mode 100644 (file)
index 0000000..a733f8e
Binary files /dev/null and b/docs/manuals/en/images/bweb5.png differ
diff --git a/docs/manuals/en/images/bweb6.png b/docs/manuals/en/images/bweb6.png
new file mode 100644 (file)
index 0000000..2cd388b
Binary files /dev/null and b/docs/manuals/en/images/bweb6.png differ
diff --git a/docs/manuals/en/images/confirm.png b/docs/manuals/en/images/confirm.png
new file mode 100644 (file)
index 0000000..d018605
Binary files /dev/null and b/docs/manuals/en/images/confirm.png differ
diff --git a/docs/manuals/en/images/contents.png b/docs/manuals/en/images/contents.png
new file mode 100644 (file)
index 0000000..0c752c6
Binary files /dev/null and b/docs/manuals/en/images/contents.png differ
diff --git a/docs/manuals/en/images/different_time.png b/docs/manuals/en/images/different_time.png
new file mode 100644 (file)
index 0000000..c156980
Binary files /dev/null and b/docs/manuals/en/images/different_time.png differ
diff --git a/docs/manuals/en/images/down.png b/docs/manuals/en/images/down.png
new file mode 100644 (file)
index 0000000..19bc937
Binary files /dev/null and b/docs/manuals/en/images/down.png differ
diff --git a/docs/manuals/en/images/duplicate-real.png b/docs/manuals/en/images/duplicate-real.png
new file mode 100644 (file)
index 0000000..068bd91
Binary files /dev/null and b/docs/manuals/en/images/duplicate-real.png differ
diff --git a/docs/manuals/en/images/duplicate.png b/docs/manuals/en/images/duplicate.png
new file mode 100644 (file)
index 0000000..aa6009c
Binary files /dev/null and b/docs/manuals/en/images/duplicate.png differ
diff --git a/docs/manuals/en/images/error.png b/docs/manuals/en/images/error.png
new file mode 100644 (file)
index 0000000..8bbf120
Binary files /dev/null and b/docs/manuals/en/images/error.png differ
diff --git a/docs/manuals/en/images/file.png b/docs/manuals/en/images/file.png
new file mode 100644 (file)
index 0000000..b218d87
Binary files /dev/null and b/docs/manuals/en/images/file.png differ
diff --git a/docs/manuals/en/images/flow.png b/docs/manuals/en/images/flow.png
new file mode 100644 (file)
index 0000000..edee701
Binary files /dev/null and b/docs/manuals/en/images/flow.png differ
diff --git a/docs/manuals/en/images/git-edit-commit.png b/docs/manuals/en/images/git-edit-commit.png
new file mode 100644 (file)
index 0000000..308ada4
Binary files /dev/null and b/docs/manuals/en/images/git-edit-commit.png differ
diff --git a/docs/manuals/en/images/home.png b/docs/manuals/en/images/home.png
new file mode 100644 (file)
index 0000000..09df68f
Binary files /dev/null and b/docs/manuals/en/images/home.png differ
diff --git a/docs/manuals/en/images/idle.png b/docs/manuals/en/images/idle.png
new file mode 100644 (file)
index 0000000..b6cee34
Binary files /dev/null and b/docs/manuals/en/images/idle.png differ
diff --git a/docs/manuals/en/images/img25.png b/docs/manuals/en/images/img25.png
new file mode 100644 (file)
index 0000000..549dbac
Binary files /dev/null and b/docs/manuals/en/images/img25.png differ
diff --git a/docs/manuals/en/images/index.png b/docs/manuals/en/images/index.png
new file mode 100644 (file)
index 0000000..698f09c
Binary files /dev/null and b/docs/manuals/en/images/index.png differ
diff --git a/docs/manuals/en/images/k7-error.png b/docs/manuals/en/images/k7-error.png
new file mode 100644 (file)
index 0000000..e49a86f
Binary files /dev/null and b/docs/manuals/en/images/k7-error.png differ
diff --git a/docs/manuals/en/images/k7-idle.png b/docs/manuals/en/images/k7-idle.png
new file mode 100644 (file)
index 0000000..ffb4eeb
Binary files /dev/null and b/docs/manuals/en/images/k7-idle.png differ
diff --git a/docs/manuals/en/images/k7-ok.png b/docs/manuals/en/images/k7-ok.png
new file mode 100644 (file)
index 0000000..df3227a
Binary files /dev/null and b/docs/manuals/en/images/k7-ok.png differ
diff --git a/docs/manuals/en/images/md5.png b/docs/manuals/en/images/md5.png
new file mode 100644 (file)
index 0000000..a92b501
Binary files /dev/null and b/docs/manuals/en/images/md5.png differ
diff --git a/docs/manuals/en/images/menu.png b/docs/manuals/en/images/menu.png
new file mode 100644 (file)
index 0000000..0635bd8
Binary files /dev/null and b/docs/manuals/en/images/menu.png differ
diff --git a/docs/manuals/en/images/next.png b/docs/manuals/en/images/next.png
new file mode 100644 (file)
index 0000000..1628652
Binary files /dev/null and b/docs/manuals/en/images/next.png differ
diff --git a/docs/manuals/en/images/next_g.png b/docs/manuals/en/images/next_g.png
new file mode 100644 (file)
index 0000000..9d3f591
Binary files /dev/null and b/docs/manuals/en/images/next_g.png differ
diff --git a/docs/manuals/en/images/nsis.png b/docs/manuals/en/images/nsis.png
new file mode 100644 (file)
index 0000000..7ef12df
Binary files /dev/null and b/docs/manuals/en/images/nsis.png differ
diff --git a/docs/manuals/en/images/philosophical-gnu-sm.png b/docs/manuals/en/images/philosophical-gnu-sm.png
new file mode 100644 (file)
index 0000000..b685884
Binary files /dev/null and b/docs/manuals/en/images/philosophical-gnu-sm.png differ
diff --git a/docs/manuals/en/images/prev.png b/docs/manuals/en/images/prev.png
new file mode 100644 (file)
index 0000000..e60b8b4
Binary files /dev/null and b/docs/manuals/en/images/prev.png differ
diff --git a/docs/manuals/en/images/prev_g.png b/docs/manuals/en/images/prev_g.png
new file mode 100644 (file)
index 0000000..476d956
Binary files /dev/null and b/docs/manuals/en/images/prev_g.png differ
diff --git a/docs/manuals/en/images/properties-security-advanced-owner.png b/docs/manuals/en/images/properties-security-advanced-owner.png
new file mode 100644 (file)
index 0000000..c61495b
Binary files /dev/null and b/docs/manuals/en/images/properties-security-advanced-owner.png differ
diff --git a/docs/manuals/en/images/properties-security.png b/docs/manuals/en/images/properties-security.png
new file mode 100644 (file)
index 0000000..e33e0c6
Binary files /dev/null and b/docs/manuals/en/images/properties-security.png differ
diff --git a/docs/manuals/en/images/right.png b/docs/manuals/en/images/right.png
new file mode 100644 (file)
index 0000000..f9b11e5
Binary files /dev/null and b/docs/manuals/en/images/right.png differ
diff --git a/docs/manuals/en/images/running.png b/docs/manuals/en/images/running.png
new file mode 100644 (file)
index 0000000..a4d711f
Binary files /dev/null and b/docs/manuals/en/images/running.png differ
diff --git a/docs/manuals/en/images/smartall.png b/docs/manuals/en/images/smartall.png
new file mode 100644 (file)
index 0000000..053a4c2
Binary files /dev/null and b/docs/manuals/en/images/smartall.png differ
diff --git a/docs/manuals/en/images/thanks.png b/docs/manuals/en/images/thanks.png
new file mode 100644 (file)
index 0000000..3daca3a
Binary files /dev/null and b/docs/manuals/en/images/thanks.png differ
diff --git a/docs/manuals/en/images/tray-icon.png b/docs/manuals/en/images/tray-icon.png
new file mode 100644 (file)
index 0000000..b860a9a
Binary files /dev/null and b/docs/manuals/en/images/tray-icon.png differ
diff --git a/docs/manuals/en/images/tray-monitor.png b/docs/manuals/en/images/tray-monitor.png
new file mode 100644 (file)
index 0000000..5432f1d
Binary files /dev/null and b/docs/manuals/en/images/tray-monitor.png differ
diff --git a/docs/manuals/en/images/tray-monitor1.png b/docs/manuals/en/images/tray-monitor1.png
new file mode 100644 (file)
index 0000000..7c697a7
Binary files /dev/null and b/docs/manuals/en/images/tray-monitor1.png differ
diff --git a/docs/manuals/en/images/up.png b/docs/manuals/en/images/up.png
new file mode 100644 (file)
index 0000000..3937e16
Binary files /dev/null and b/docs/manuals/en/images/up.png differ
diff --git a/docs/manuals/en/images/up_g.png b/docs/manuals/en/images/up_g.png
new file mode 100644 (file)
index 0000000..54ceb68
Binary files /dev/null and b/docs/manuals/en/images/up_g.png differ
diff --git a/docs/manuals/en/images/view-only.png b/docs/manuals/en/images/view-only.png
new file mode 100644 (file)
index 0000000..53ba6a1
Binary files /dev/null and b/docs/manuals/en/images/view-only.png differ
diff --git a/docs/manuals/en/images/win32-config.png b/docs/manuals/en/images/win32-config.png
new file mode 100644 (file)
index 0000000..31ad6b7
Binary files /dev/null and b/docs/manuals/en/images/win32-config.png differ
diff --git a/docs/manuals/en/images/win32-finish.png b/docs/manuals/en/images/win32-finish.png
new file mode 100644 (file)
index 0000000..a0a2124
Binary files /dev/null and b/docs/manuals/en/images/win32-finish.png differ
diff --git a/docs/manuals/en/images/win32-installation-type.png b/docs/manuals/en/images/win32-installation-type.png
new file mode 100644 (file)
index 0000000..fbf950b
Binary files /dev/null and b/docs/manuals/en/images/win32-installation-type.png differ
diff --git a/docs/manuals/en/images/win32-installing.png b/docs/manuals/en/images/win32-installing.png
new file mode 100644 (file)
index 0000000..eb1d33a
Binary files /dev/null and b/docs/manuals/en/images/win32-installing.png differ
diff --git a/docs/manuals/en/images/win32-location.png b/docs/manuals/en/images/win32-location.png
new file mode 100644 (file)
index 0000000..47394b9
Binary files /dev/null and b/docs/manuals/en/images/win32-location.png differ
diff --git a/docs/manuals/en/images/win32-menu.png b/docs/manuals/en/images/win32-menu.png
new file mode 100644 (file)
index 0000000..5151724
Binary files /dev/null and b/docs/manuals/en/images/win32-menu.png differ
diff --git a/docs/manuals/en/images/win32-nsis.png b/docs/manuals/en/images/win32-nsis.png
new file mode 100644 (file)
index 0000000..ffad871
Binary files /dev/null and b/docs/manuals/en/images/win32-nsis.png differ
diff --git a/docs/manuals/en/images/win32-pkg.png b/docs/manuals/en/images/win32-pkg.png
new file mode 100644 (file)
index 0000000..8c0ec03
Binary files /dev/null and b/docs/manuals/en/images/win32-pkg.png differ
diff --git a/docs/manuals/en/images/win32-service-ok.png b/docs/manuals/en/images/win32-service-ok.png
new file mode 100644 (file)
index 0000000..13c63ab
Binary files /dev/null and b/docs/manuals/en/images/win32-service-ok.png differ
diff --git a/docs/manuals/en/images/win32-service.png b/docs/manuals/en/images/win32-service.png
new file mode 100644 (file)
index 0000000..657396d
Binary files /dev/null and b/docs/manuals/en/images/win32-service.png differ
diff --git a/docs/manuals/en/images/win32-start.png b/docs/manuals/en/images/win32-start.png
new file mode 100644 (file)
index 0000000..8c38df9
Binary files /dev/null and b/docs/manuals/en/images/win32-start.png differ
diff --git a/docs/manuals/en/images/win32-welcome.png b/docs/manuals/en/images/win32-welcome.png
new file mode 100644 (file)
index 0000000..9a551d3
Binary files /dev/null and b/docs/manuals/en/images/win32-welcome.png differ
diff --git a/docs/manuals/en/images/wx-console-restore1.png b/docs/manuals/en/images/wx-console-restore1.png
new file mode 100644 (file)
index 0000000..a28dd04
Binary files /dev/null and b/docs/manuals/en/images/wx-console-restore1.png differ
diff --git a/docs/manuals/en/images/wx-console-restore2.png b/docs/manuals/en/images/wx-console-restore2.png
new file mode 100644 (file)
index 0000000..f20485b
Binary files /dev/null and b/docs/manuals/en/images/wx-console-restore2.png differ
diff --git a/docs/manuals/en/images/xp-control-panel.png b/docs/manuals/en/images/xp-control-panel.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/images/xp-windows-firewall-advanced-settings-after.png b/docs/manuals/en/images/xp-windows-firewall-advanced-settings-after.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/images/xp-windows-firewall-advanced-settings-before.png b/docs/manuals/en/images/xp-windows-firewall-advanced-settings-before.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/images/xp-windows-firewall-advanced-settings-service-details.png b/docs/manuals/en/images/xp-windows-firewall-advanced-settings-service-details.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/images/xp-windows-firewall-advanced.png b/docs/manuals/en/images/xp-windows-firewall-advanced.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/images/xp-windows-firewall.png b/docs/manuals/en/images/xp-windows-firewall.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/manuals/en/js/bsys.js b/docs/manuals/en/js/bsys.js
new file mode 100644 (file)
index 0000000..1bc7bf9
--- /dev/null
@@ -0,0 +1,111 @@
+function log(msg) {
+    setTimeout(function() {
+        throw new Error(msg);
+    }, 0);
+}
+function basename(path) {
+    var forwin = path.replace(/\\/g,'/') ;
+    var fornux = forwin.replace(/.*\//, '' );
+    return fornux ;
+}
+function menuonload(self) {
+    var myatag = "";
+    var mytag = "" ;
+    var x = 0 ;
+    var atag = document.getElementsByTagName("a") ;
+    var filename = basename(document.location.href) ;
+    for (x=0;x<atag.length;x=x+1) {
+        if (basename(atag[x].href) == filename) {
+           myatag = atag[x] ;
+           break ;
+        }
+    }
+    openmenus(self,myatag) ;
+}
+function openmenus(self,myatag) {
+    x = 0 ;
+    var breadcrumbstext = new Array() ;
+    var breadcrumbsrefs = new Array() ;
+    breadcrumbsrefs[x] = myatag.href ;
+    breadcrumbstext[x] = myatag.innerHTML ;
+    mytag = myatag.parentNode.parentNode ;
+    while (mytag.tagName != "DIV") {
+       x++ ;
+       // mytag is (should be ?) a <UL> tag
+       // Define right classes
+       var classes = mytag.className ;
+       classes = classes.replace("expandingMenuNotSelected","expandingMenuSelected");
+       mytag.className=x;
+       mytag.style.display="block";
+       //
+       // Change arrow from "right" to "down"
+       myatag = mytag.parentNode.getElementsByTagName("a")[0] ;
+       //
+       // Keep all needed informations
+       breadcrumbsrefs[x] = myatag.href ;
+       breadcrumbstext[x] = myatag.innerHTML ;
+       //
+       // Find upper level
+        mytag = mytag.parentNode.parentNode ;
+    }
+    //
+    // Find the breadcrumbs part
+    mytag = document.getElementById("bsys_breadcrumbscontentid") ;
+    //
+    // Build breadcrumbs content
+    var thebreadcrumbs = "<ul>" ;
+    for (y=x-1;y>=0;y--) {
+       thebreadcrumbs = thebreadcrumbs + "<li><a href='" + breadcrumbsrefs[y] + "' onclick=\"menuonclick(this,'');\">" + breadcrumbstext[y] + "</a></li>" ;
+    }
+    thebreadcrumbs = thebreadcrumbs + "</ul>"
+    mytag.innerHTML = thebreadcrumbs ;
+}
+function menuonclick(self) {
+    //
+    // find the *other* <A> tag which contains the same HREF
+    var myatag = "";
+    var x ;
+    var atags = document.getElementsByTagName("a") ;
+    var filename = basename(self.href) ;
+    var firstone = 0 ;
+    for (x=0;x<atags.length;x=x+1) {
+        if ((basename(atags[x].href) == filename) && (atags[x].name != "")) {
+           myatag = atags[x] ;
+           break ;
+        }
+    }
+    
+    openmenus(self,myatag) ;
+}
+function click_expandingMenuHeader(obj,uniqid)
+{
+    var x=document.getElementById(uniqid).className;
+    x=x.replace("expandingMenuNotSelected","expandingMenuSelected");
+    obj.style.listStyleImage = "url(\'../../images/down.png\')" ;
+    document.getElementById(uniqid).className=x;
+    document.getElementById(uniqid).style.display="block";
+    linode = obj.parentNode ;
+    linode.onmouseout="" ;
+}
+function over_expandingMenuHeader(obj,uniqid)
+{
+    var x=document.getElementById(uniqid).className;
+    if (x.indexOf("expandingMenuNotSelected")>-1)
+    {
+       x=x.replace("expandingMenuNotSelected","expandingMenuSelected");
+        obj.style.listStyleImage = "url(\'../../images/down.png\')" ;
+       document.getElementById(uniqid).className=x;
+       document.getElementById(uniqid).style.display="block";
+    }
+}
+function out_expandingMenuHeader(obj,uniqid)
+{
+    var x=document.getElementById(uniqid).className;
+    if (x.indexOf("expandingMenuSelected")>-1)
+    {
+       x=x.replace("expandingMenuSelected","expandingMenuNotSelected");
+       document.getElementById(uniqid).className=x;
+        obj.style.listStyleImage = "url(\'../../images/right.png\')" ;
+       document.getElementById(uniqid).style.display="none";
+    }
+}
index 3daafe3731450d6f0f6443dc28e130aa27b7fcba..0fe5560dd71bc76151d460e638177ef3f071f2b2 100644 (file)
@@ -32,9 +32,8 @@
 # 
 #    # $ % & ~ _ ^ \ { }
 #
-
-IMAGES=../../../images
 MANUALSDIR=../..
+IMAGES=$(MANUALSDIR)/../images
 DOC=main
 MAINDOC=Bacula_Main_Reference.html
 BSYSMANUALDIR=../../../bsysmanual
@@ -54,10 +53,13 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *.tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
+MAKEFORWEB=$(DOCDIR)/web.makefile
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
 
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 .SUFFIXES:     .tex .html
 .PHONY:
@@ -113,17 +115,22 @@ tex:      epscovers epsimages commonfiles
        makeindex ${DOC}.cdx -o ${DOC}.cnd >/dev/null 2>/dev/null
        latex -interaction=batchmode ${DOC}.tex
 
-pdflatex: pdfcovers pdfimages commonfiles
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       makeindex ${DOC}.ddx -o ${DOC}.dnd >/dev/null 2>/dev/null
-       makeindex ${DOC}.fdx -o ${DOC}.fnd >/dev/null 2>/dev/null
-       makeindex ${DOC}.sdx -o ${DOC}.snd >/dev/null 2>/dev/null
-       makeindex ${DOC}.cdx -o ${DOC}.cnd >/dev/null 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC) external references done."
 
+pdflatex: external-references
+       @echo " "
+       @echo " Generating the PDF version of $(DOC)"
+       @echo "   building indexes"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @echo -n "   compiling..."
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
 html:
        @echo " "
        @echo "Making html"
@@ -142,38 +149,23 @@ html:
        @echo "Done making html"
 
 
-web: clean
+web: mini-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 ;\
+       cat $$F | sed -e 's/bsysref/vref/g;s/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/\\bsysimage.{\(.*\)}{\(.*\)}{\(.*\)}/\\begin{center}\\begin{figure}\\includegraphics{\1}\\caption{\2}\\label{\3}\\end{figure}\\end{center}/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/\\begin{landscape}//g;s/\\end{landscape}//g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(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}
 
@@ -186,7 +178,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -215,5 +207,6 @@ webclean:
        @rm -rf $(WWWDIR)
 
 distclean:  webclean clean
+       @rm -f *.pdf
        @rm -f images.pl labels.pl internals.pl
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/main/web.makefile b/docs/manuals/en/main/web.makefile
new file mode 100644 (file)
index 0000000..65c7fb3
--- /dev/null
@@ -0,0 +1,90 @@
+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)
+TABLES=$(wildcard table_*.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.{\(.*\)}{\(.*\)}{\(.*\)}/\\begin{center}\\begin{figure}\\includegraphics{\1}\\caption{\2}\\label{\3}\\end{figure}\\end{center}/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 2ac9475fa1742bc2b24e94efc2e28ade7e629792..1815cfb67dd60548aa97f259121f186df9a25880 100644 (file)
@@ -56,10 +56,13 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *.tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
+MAKEFORWEB=$(DOCDIR)/web.makefile
 
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 .SUFFIXES:     .tex .html
 .PHONY:
@@ -111,13 +114,22 @@ tex:      epscovers epsimages commonfiles
        makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
        latex -interaction=batchmode ${DOC}.tex
 
-
-pdflatex: pdfcovers pdfimages commonfiles
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC) external references done."
+
+pdflatex: external-references
+       @echo " "
+       @echo " Generating the PDF version of $(DOC)"
+       @echo "   building indexes"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @echo "   compiling..."
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
 
 html:
        @echo " "
@@ -132,16 +144,16 @@ html:
        (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
        @echo "Done making html"
 
-web: clean
+web: mini-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 ;\
+       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;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile
        @(for F in $(WEBFILESTOLINK);\
        do \
        ln -sf $$F $(WWWDIR)/;\
@@ -180,7 +192,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -197,7 +209,7 @@ clean:
        @find . -type l -name "*.tex" -exec rm {} \;
        @rm -f 1 2 3 *.tex~
        @rm -f *.png *.gif *.jpg *.eps
-       @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
        @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd imagename_translations
@@ -209,5 +221,6 @@ webclean:
        @rm -rf $(WWWDIR)
 
 distclean:  webclean clean
+       @rm -f *.pdf
        @rm -f images.pl labels.pl internals.pl
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/misc/web.makefile b/docs/manuals/en/misc/web.makefile
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 cff5ac9b4827f26108fce57ba688dba4d277e940..e6d7c3c9d626ee1e647e1c7022f52b1660d68b2c 100644 (file)
@@ -56,10 +56,13 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *.tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
+MAKEFORWEB=$(DOCDIR)/web.makefile
 
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 .SUFFIXES:     .tex .html
 .PHONY:
@@ -110,13 +113,22 @@ tex: epscovers epsimages commonfiles
        makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
        latex -interaction=batchmode ${DOC}.tex
 
-
-pdflatex: pdfcovers pdfimages commonfiles
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC) external references done."
+
+pdflatex: external-references
+       @echo " "
+       @echo " Generating the PDF version of $(DOC)"
+       @echo "   building indexes"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @echo "   compiling..."
+       $(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       $(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
 
 html:
        @echo " "
@@ -134,16 +146,16 @@ html:
        (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
        @echo "Done making html"
 
-web: clean
+web: mini-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 ;\
+       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;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile
        @(for F in $(WEBFILESTOLINK);\
        do \
        ln -sf $$F $(WWWDIR)/;\
@@ -180,7 +192,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -198,7 +210,7 @@ clean:
        @find . -type l -name "*.tex" -exec rm {} \;
        @rm -f 1 2 3 *.tex~
        @rm -f *.png *.gif *.jpg *.eps
-       @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
        @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd imagename_translations
@@ -210,5 +222,6 @@ webclean:
        @rm -rf $(WWWDIR)
 
 distclean:  webclean clean
+       @rm -f *.pdf
        @rm -f images.pl labels.pl internals.pl
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/problems/web.makefile b/docs/manuals/en/problems/web.makefile
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 6b948c9c13a1b846697f1d23910c2db5df5557ec..7bf6d39bbfa77abb418c4a2cedee2983a3f6a82f 100644 (file)
@@ -55,11 +55,13 @@ WWWDIR=../www-$(DOC)
 DOCDIR=../${DOC}
 TEXFILES=$(wildcard *.tex)
 WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
-
+PDFLATEX=pdflatex
+PDFLATEXOPTIONS=-interaction=batchmode
+MAKEFORWEB=$(DOCDIR)/web.makefile
 
 first_rule: all
 
-all: tex pdflatex web mini-clean
+all: pdflatex web mini-clean
 
 
 .SUFFIXES:     .tex .html
@@ -113,15 +115,23 @@ tex:      epscovers epsimages commonfiles
        makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
        latex -interaction=batchmode ${DOC}.tex
 
-
-pdflatex: pdfcovers pdfimages commonfiles
+external-references: pdfcovers pdfimages commonfiles
+       @echo " "
+       @echo "Building external references for $(DOC)"
        @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
-       @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
-            ${DOC}i-console.tex ${DOC}i-general.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
-       makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
-       pdflatex -interaction=batchmode ${DOC}.tex
-       pdflatex -interaction=batchmode ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC) external references done."
+
+
+pdflatex: external-references
+       @echo " "
+       @echo " Generating the PDF version of $(DOC)"
+       @echo "   building indexes"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @echo "   compiling..."
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
 
 html:
        @echo " "
@@ -140,16 +150,16 @@ html:
        (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
        @echo "Done making html"
 
-web: clean
+web: mini-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 ;\
+       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;s/\\LTXtable{.*}{\(.*\)}/\\include{\1}/g' > $(WWWDIR)/$$F ;\
        done)
-       @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+       @ln -sf $(MAKEFORWEB) $(WWWDIR)/Makefile
        @(for F in $(WEBFILESTOLINK);\
        do \
        ln -sf $$F $(WWWDIR)/;\
@@ -186,7 +196,7 @@ main_configs:
 mini-clean:
        @rm -f 1 2 3 *.tex~
        @rm -f *.gif *.jpg *.eps
-       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.cp *.fn *.ky *.log *.pg
        @rm -f *.backup *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd *.old *.out 
@@ -203,7 +213,7 @@ clean:
        @find . -type l -name "*.tex" -exec rm {} \;
        @rm -f 1 2 3 *.tex~
        @rm -f *.png *.gif *.jpg *.eps
-       @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
+       @rm -f *.aux *.cp *.fn *.ky *.log *.pg
        @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
        @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
        @rm -f *.dnd imagename_translations
@@ -215,5 +225,6 @@ webclean:
        @rm -rf $(WWWDIR)
 
 distclean:  webclean clean
+       @rm -f *.pdf
        @rm -f images.pl labels.pl internals.pl
        @rm -f Makefile version.tex
diff --git a/docs/manuals/en/utility/web.makefile b/docs/manuals/en/utility/web.makefile
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"