basedir = ..
topdir = ..
thisdir = docs
+toolsdir = ./tools
+TRANSLATE=./htmls.sh
#
# Distribution variables
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
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)
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
@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)/;\
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
webclean:
@rm -rf $(WWWDIR)
-distclean: webclean clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+#
+# 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"
--- /dev/null
+.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
--- /dev/null
+/* 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; }
--- /dev/null
+/* 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 }
# # $ % & ~ _ ^ \ { }
#
-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
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:
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)/;\
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
@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
@rm -rf $(WWWDIR)
distclean: webclean clean
+ @rm -f *.pdf
@rm -f ${DOC}.html ${DOC}.pdf
@rm -f Makefile version.tex
--- /dev/null
+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"
--- /dev/null
+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";
+ }
+}
#
# # $ % & ~ _ ^ \ { }
#
-
-IMAGES=../../../images
MANUALSDIR=../..
+IMAGES=$(MANUALSDIR)/../images
DOC=main
MAINDOC=Bacula_Main_Reference.html
BSYSMANUALDIR=../../../bsysmanual
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:
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"
@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}
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
@rm -rf $(WWWDIR)
distclean: webclean clean
+ @rm -f *.pdf
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+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"
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:
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 " "
(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)/;\
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
@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
@rm -rf $(WWWDIR)
distclean: webclean clean
+ @rm -f *.pdf
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+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"
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:
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 " "
(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)/;\
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
@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
@rm -rf $(WWWDIR)
distclean: webclean clean
+ @rm -f *.pdf
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+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"
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
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 " "
(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)/;\
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
@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
@rm -rf $(WWWDIR)
distclean: webclean clean
+ @rm -f *.pdf
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+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"