-\DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.jpeg}
-\def\bsysexample{verbatim}
-\def\bsysexampleinline{verb}
+\graphicspath{{../../../images/png/}{../../../images/hires/}{../../../images/eps/}{../../../images/}}
+\DeclareGraphicsExtensions{.eps,.png,.jpg,.jpeg}
#
# # $ % & ~ _ ^ \ { }
#
-
-IMAGES=../../../images
-
-DOC=console
-MAINDOC=Bacula_Console_Operators_Gu.html
-
MANUALSDIR=../..
-BSYSMANUALDIR=../../../bsysmanual
-COVERSDIR=../../../covers
+IMAGES=$(MANUALSDIR)/../images
+DOC=console
+MAINDOC=Console_Operators_Guide.html
+BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual
+COVERSDIR=$(MANUALSDIR)/../covers
PDFCOVERSDIR=$(COVERSDIR)/pdf
SVGCOVERSDIR=$(COVERSDIR)/svg
EPSCOVERSDIR=$(COVERSDIR)/eps
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
.PHONY:
@echo "Done."
commonfiles:
- @../../update_version
+ @$(MANUALSDIR)/update_version
@echo "Making version `cat version.tex`"
@echo -n "Linking shared files..."
@(for L in $(LICENCES); do ln -sf $$L .; done)
pdflatex -interaction=batchmode ${DOC}.tex
pdflatex -interaction=batchmode ${DOC}.tex
-html:
- @echo " "
- @echo "Making html"
- @ln -sf $(WEBCOMPILERFILE) $(BSYSCOMPILERFILE)
-# @cp -fp ${IMAGES}/*.eps .
-# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
- -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
- @echo "Done making html"
-
-web:
+web: clean
@echo "Making web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @rm -f ${DOC}/xp-*.png
- @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
- latex2html -split 3 -local_icons -t "Bacula Console and Operators Guide" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make)
@echo "Done making web"
show:
@rm -f ${DOC}i-*.tex
@rm -rf ${DOC}
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /dev/null
+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"
MANUALSDIR=../..
DOC=developers
+MAINDOC=Bacula_Developer_Notes.html
BSYSMANUALDIR=../../../bsysmanual
COVERSDIR=../../../covers
PDFCOVERSDIR=$(COVERSDIR)/pdf
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
.PHONY:
(cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
@rm -f *.eps *.gif *.jpg *.old
-web:
- @echo "Making ${DOC} web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @rm -f ${DOC}/*
-# @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @(if [ -f ${DOC}/imagename_translations ] ; then \
- ./translate_images.pl --to_meaningful_names ${DOC}/Developer*Guide.html; \
- fi)
- @rm -rf ${DOC}/*.html
- latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- @cp -f ${DOC}/Bacula_Developer_Notes.html ${DOC}/index.html
- @rm -f *.eps *.gif *.jpg ${DOC}/*.eps *.old
- @rm -f ${DOC}/idle.png
- @rm -f ${DOC}/win32-*.png ${DOC}/wx-console*.png ${DOC}/xp-*.png
- @rm -f ${DOC}/*.pl ${DOC}/*.log ${DOC}/*.aux ${DOC}/*.idx
- @rm -f ${DOC}/*.out WARNINGS
+
+web: clean
+ @echo "Making web"
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make )
+ @echo "Done making web"
+
+
+# web:
+# @echo "Making ${DOC} web"
+# @rm -rf ${DOC}
+# @mkdir -p ${DOC}
+# @rm -f ${DOC}/*
+# # @cp -fp ${IMAGES}/*.eps .
+# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+# @(if [ -f ${DOC}/imagename_translations ] ; then \
+# ./translate_images.pl --to_meaningful_names ${DOC}/Developer*Guide.html; \
+# fi)
+# @rm -rf ${DOC}/*.html
+# latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \
+# -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+# -no_antialias -no_antialias_text \
+# -white -notransparent ${DOC} >tex.out 2>&1
+# @(if [ -f imagename_translations ] ; then \
+# ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+# fi)
+# @cp -f ${DOC}/Bacula_Developer_Notes.html ${DOC}/index.html
+# @rm -f *.eps *.gif *.jpg ${DOC}/*.eps *.old
+# @rm -f ${DOC}/idle.png
+# @rm -f ${DOC}/win32-*.png ${DOC}/wx-console*.png ${DOC}/xp-*.png
+# @rm -f ${DOC}/*.pl ${DOC}/*.log ${DOC}/*.aux ${DOC}/*.idx
+# @rm -f ${DOC}/*.out WARNINGS
texcheck:
./check_tex.pl ${DOC}.tex
@rm -f ${DOC}/WARNINGS
clean:
- @find . -type f -name ${DOC}.mtc* -exec rm {} \;
+ @find . -type f -name "${DOC}.mtc*" -exec rm {} \;
@find . -type l -name "*.tex" -exec rm {} \;
@rm -f 1 2 3
@rm -f *.png *.gif *.jpg *.eps
@rm -f images.tex ${DOC}i.tex
@rm -f ${DOC}i-*.tex
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f ${DOC}.html ${DOC}.pdf
@rm -f Makefile version.tex
--- /dev/null
+MANUALSDIR=../..
+IMAGES=$(MANUALSDIR)/../images
+DOC=developers
+MAINDOC=Bacula_Developer_Notes.html
+BSYSMANUALDIR=../../../bsysmanual
+BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual
+COVERSDIR=$(MANUALSDIR)/../covers
+PDFCOVERSDIR=$(COVERSDIR)/pdf
+SVGCOVERSDIR=$(COVERSDIR)/svg
+EPSCOVERSDIR=$(COVERSDIR)/eps
+LICENSESDIR=$(MANUALSDIR)/licences
+COVERNAME=coverpage-console
+BSYSMANNAME=bsysmanual-coverpagebackground
+LICENCES=$(wildcard $(LICENSESDIR)/*.tex)
+BSYSCOMPILERFILE=bsys-compiler-mode.tex
+PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
+TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
+WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+
+.SUFFIXES: .tex .html
+.PHONY:
+.DONTCARE:
+
+
+first_rule: all
+
+all: web clean
+
+pngimages:
+ @echo "PNG images"
+ @echo -n "Generating PNG images..."
+ @(cd ${IMAGES}/svg ; make png)
+ @echo "Done."
+ @echo -n "Linking png images..."
+ @(for F in $(IMAGES)/*.png ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @(for F in $(IMAGES)/png/*.png ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @echo "Done."
+ @echo "PNG done."
+
+epsimages:
+ @echo "EPS images"
+ @echo -n "Generating EPS images..."
+ @(cd ${IMAGES}/svg ; make eps)
+ @echo "Done."
+ @echo -n "Linking eps images..."
+ @(for F in $(IMAGES)/*.eps ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @(for F in $(IMAGES)/eps/*.eps ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @echo "Done."
+ @echo "EPS done."
+
+clean:
+ @echo -n "Cleaning..."
+ @find . -type l -iname "*.eps" -exec rm {} \;
+ @find . -type l -iname "*.png" -exec rm {} \;
+ @echo "Done."
+
+commonfiles:
+ @(for F in $(LICENCES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\
+ done)
+ cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex
+ @echo "Done"
+
+web: commonfiles epsimages pngimages
+ @echo "Making web"
+ @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+ @rm -f ${DOC}/xp-*.png
+ @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
+ latex2html -split 4 -local_icons -t "Developer's Guide" -long_titles 4 \
+ -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+ -no_antialias -no_antialias_text \
+ -white -notransparent ${DOC} >tex.out 2>&1
+ @(if [ -f imagename_translations ] ; then \
+ ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \
+ fi)
+ @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @echo "Done making web"
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *.tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
+
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
.PHONY:
(cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
@echo "Done making html"
-web:
+
+web: clean
@echo "Making web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make )
@echo "Done making web"
+#
+# web:
+# @echo "Making web"
+# @rm -rf ${DOC}
+# @mkdir -p ${DOC}
+# @cp -fp ${IMAGES}/*.eps .
+# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+# latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \
+# -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+# -no_antialias -no_antialias_text \
+# -white -notransparent ${DOC} >tex.out 2>&1
+# @(if [ -f imagename_translations ] ; then \
+# ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+# fi)
+# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+# @echo "Done making web"
show:
xdvi ${DOC}
clean:
- @find . -type f -name ${DOC}.mtc* -exec rm {} \;
+ @find . -type f -name "${DOC}.mtc*" -exec rm {} \;
@find . -type l -name "*.tex" -exec rm {} \;
@rm -f 1 2 3 *.tex~
@rm -f *.png *.gif *.jpg *.eps
@rm -f ${DOC}i-*.tex
@rm -rf ${DOC}
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /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)
+BSYSCOMPILERFILE=bsys-compiler-mode.tex
+PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
+TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
+WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+
+.SUFFIXES: .tex .html
+.PHONY:
+.DONTCARE:
+
+first_rule: all
+
+all: web clean
+
+pngimages:
+ @echo "PNG images"
+ @echo -n "Generating PNG images..."
+ @(cd ${IMAGES}/svg ; make png)
+ @echo "Done."
+ @echo -n "Linking png images..."
+ @(for F in $(IMAGES)/*.png ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @(for F in $(IMAGES)/png/*.png ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @echo "Done."
+ @echo "PNG done."
+
+epsimages:
+ @echo "EPS images"
+ @echo -n "Generating EPS images..."
+ @(cd ${IMAGES}/svg ; make eps)
+ @echo "Done."
+ @echo -n "Linking eps images..."
+ @(for F in $(IMAGES)/*.eps ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @(for F in $(IMAGES)/eps/*.eps ;\
+ do \
+ ln -sf $$F ./`basename $$F`; \
+ done)
+ @echo "Done."
+ @echo "EPS done."
+
+clean:
+ @echo -n "Cleaning..."
+ @find . -type l -iname "*.eps" -exec rm {} \;
+ @find . -type l -iname "*.png" -exec rm {} \;
+ @echo "Done."
+
+commonfiles:
+ @(for F in $(LICENCES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\
+ done)
+ cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex
+ @echo "Done"
+
+web: commonfiles epsimages pngimages
+ @echo "Making web"
+ @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+ @rm -f ${DOC}/xp-*.png
+ @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
+ latex2html -split 3 -local_icons -t "Bacula Main Reference" -long_titles 4 \
+ -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+ -no_antialias -no_antialias_text \
+ -white -notransparent ${DOC} >tex.out 2>&1
+ @(if [ -f imagename_translations ] ; then \
+ ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \
+ fi)
+ @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @echo "Done making web"
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
-
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *.tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
.PHONY:
(cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
@echo "Done making html"
-web:
+web: clean
@echo "Making web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @rm -f ${DOC}/xp-*.png
- @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
- latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}/${MAINDOC}; \
- fi)
- @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make )
@echo "Done making web"
+
+
+# web:
+# @echo "Making web"
+# @rm -rf ${DOC}
+# @mkdir -p ${DOC}
+# @cp -fp ${IMAGES}/*.eps .
+# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+# @rm -f ${DOC}/xp-*.png
+# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
+# latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \
+# -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+# -no_antialias -no_antialias_text \
+# -white -notransparent ${DOC} >tex.out 2>&1
+# @(if [ -f imagename_translations ] ; then \
+# ./translate_images.pl --from_meaningful_names ${DOC}/${MAINDOC}; \
+# fi)
+# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+# @echo "Done making web"
+
show:
xdvi ${DOC}
clean:
- @find . -type f -name ${DOC}.mtc* -exec rm {} \;
+ @find . -type f -name "${DOC}.mtc*" -exec rm {} \;
@find . -type l -name "*.tex" -exec rm {} \;
@rm -f 1 2 3 *.tex~
@rm -f *.png *.gif *.jpg *.eps
@rm -f ${DOC}i-*.tex
@rm -rf ${DOC}
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /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"
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *.tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
.PHONY:
(cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
@echo "Done making html"
-web:
+web: clean
@echo "Making web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @rm -f ${DOC}/xp-*.png
- @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
- latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make )
@echo "Done making web"
+# web:
+# @echo "Making web"
+# @rm -rf ${DOC}
+# @mkdir -p ${DOC}
+# @cp -fp ${IMAGES}/*.eps .
+# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+# @rm -f ${DOC}/xp-*.png
+# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
+# latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \
+# -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+# -no_antialias -no_antialias_text \
+# -white -notransparent ${DOC} >tex.out 2>&1
+# @(if [ -f imagename_translations ] ; then \
+# ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+# fi)
+# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+# @echo "Done making web"
+
show:
xdvi ${DOC}
clean:
- @find . -type f -name ${DOC}.mtc* -exec rm {} \;
+ @find . -type f -name "${DOC}.mtc*" -exec rm {} \;
@find . -type l -name "*.tex" -exec rm {} \;
@rm -f 1 2 3 *.tex~
@rm -f *.png *.gif *.jpg *.eps
@rm -f ${DOC}i-*.tex
@rm -rf ${DOC}
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /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"
PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
+WWWDIR=../www-$(DOC)
+DOCDIR=../${DOC}
+TEXFILES=$(wildcard *.tex)
+WEBFILESTOLINK=$(DOCDIR)/latex2html-init.pl $(DOCDIR)/bacula.sty $(DOCDIR)/translate_images.pl
first_rule: all
-all: tex pdflatex mini-clean
+all: tex pdflatex web mini-clean
.SUFFIXES: .tex .html
(cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
@echo "Done making html"
-web:
+web: clean
@echo "Making web"
- @rm -rf ${DOC}
- @mkdir -p ${DOC}
- @cp -fp ${IMAGES}/*.eps .
- @rm -f next.eps next.png prev.eps prev.png up.eps up.png
- @rm -f ${DOC}/xp-*.png
- @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
- latex2html -split 3 -local_icons -t "Bacula Utility Programs" -long_titles 4 \
- -toc_stars -contents_in_nav -init_file latex2html-init.pl \
- -no_antialias -no_antialias_text \
- -white -notransparent ${DOC} >tex.out 2>&1
- @(if [ -f imagename_translations ] ; then \
- ./translate_images.pl --from_meaningful_names ${DOC}.html; \
- fi)
- @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+ @rm -rf $(WWWDIR)
+ @mkdir -p $(WWWDIR)
+ @echo -"Creating tex files..."
+ @(for F in $(TEXFILES) ;\
+ do \
+ cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/bsysitemize/itemize/g;s/\\listoffigures//g;s/\\listoftables//g' > $(WWWDIR)/$$F ;\
+ done)
+ @ln -sf $(DOCDIR)/Makefile.web $(WWWDIR)/Makefile
+ @(for F in $(WEBFILESTOLINK);\
+ do \
+ ln -sf $$F $(WWWDIR)/;\
+ done)
+ (cd $(WWWDIR) ; make )
@echo "Done making web"
+
+# web:
+# @echo "Making web"
+# @rm -rf ${DOC}
+# @mkdir -p ${DOC}
+# @cp -fp ${IMAGES}/*.eps .
+# @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+# @rm -f ${DOC}/xp-*.png
+# @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
+# latex2html -split 3 -local_icons -t "Bacula Utility Programs" -long_titles 4 \
+# -toc_stars -contents_in_nav -init_file latex2html-init.pl \
+# -no_antialias -no_antialias_text \
+# -white -notransparent ${DOC} >tex.out 2>&1
+# @(if [ -f imagename_translations ] ; then \
+# ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+# fi)
+# @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
+# @echo "Done making web"
show:
xdvi ${DOC}
clean:
- @find . -type f -name ${DOC}.mtc* -exec rm {} \;
+ @find . -type f -name "${DOC}.mtc*" -exec rm {} \;
@find . -type l -name "*.tex" -exec rm {} \;
@rm -f 1 2 3 *.tex~
@rm -f *.png *.gif *.jpg *.eps
@rm -f ${DOC}i-*.tex
@rm -rf ${DOC}
+webclean:
+ @rm -rf $(WWWDIR)
-distclean: clean
+distclean: webclean clean
@rm -f images.pl labels.pl internals.pl
@rm -f Makefile version.tex
--- /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"
A copy of the license is included in the section entitled ``GNU Free Documentation License''.
\end{small}
}
-%%% --- Header and footer
-\fancypagestyle{plain}{%
-\fancyhf{}%
-\renewcommand{\footrulewidth}{0.4pt}
-\renewcommand{\headrulewidth}{0.4pt}
-\fancyhead[LE,RO]{\small{\textit{Enterprise \bsystitle{}}}}%
-\fancyhead[RE,LO]{\small{\textit{\textcolor{bsysredtwo}{\leftmark}}}}%Bacula Console and Opertors Guide}}}}%
-\fancyfoot[RE,LO]{\small{\href{http://www.baculasystems.com}{www.baculasystems.com}
-- \textit{Enterprise \bsystitle}}}% -- DRAFT}}}
-\fancyfoot[LE,RO]{\small{\textit{\thepage/\pageref{LastPage}}}}
-}
-
-%%% --- Header and footer
-\pagestyle{plain}
-\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
-\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
+\input{header-footer}
\maketitle
--- /dev/null
+%%% --- Header and footer
+\fancypagestyle{plain}{%
+\fancyhf{}%
+\renewcommand{\footrulewidth}{0.4pt}
+\renewcommand{\headrulewidth}{0.4pt}
+\fancyhead[LE,RO]{\small{\textit{Enterprise \bsystitle{}}}}%
+\fancyhead[RE,LO]{\small{\textit{\textcolor{bsysredtwo}{\leftmark}}}}%Bacula Console and Opertors Guide}}}}%
+\fancyfoot[RE,LO]{\small{\href{http://www.baculasystems.com}{www.baculasystems.com}
+- \textit{Enterprise \bsystitle}}}% -- DRAFT}}}
+\fancyfoot[LE,RO]{\small{\textit{\thepage/\pageref{LastPage}}}}
+}
+
+%%% --- Header and footer
+\pagestyle{plain}
+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+\renewcommand{\sectionmark}[1]{\markboth{#1}{}}