]> git.sur5r.net Git - bacula/docs/commitdiff
Tweaks to hopefully make it work
authorKern Sibbald <kern@sibbald.com>
Fri, 7 Mar 2014 21:29:56 +0000 (22:29 +0100)
committerKern Sibbald <kern@sibbald.com>
Fri, 7 Mar 2014 21:29:56 +0000 (22:29 +0100)
docs/images/svg/Makefile [new file with mode: 0644]
docs/manuals/en/console/Makefile
docs/manuals/en/developers/Makefile
docs/manuals/en/main/Makefile
docs/manuals/en/misc/Makefile
docs/manuals/en/problems/Makefile
docs/manuals/en/utility/Makefile
docs/update_version [new file with mode: 0755]

diff --git a/docs/images/svg/Makefile b/docs/images/svg/Makefile
new file mode 100644 (file)
index 0000000..2a9eb57
--- /dev/null
@@ -0,0 +1,75 @@
+#
+# Makefile for converting svg files
+# to something else: png, pdf, eps
+#
+# 10-Oct-2012 - Philippe Chauvat / Bacula Systems
+#
+INKSCAPE=inkscape
+INKSCAPE_FLAGS=-z
+INKSCAPE_OUTPUT=>>./inkscape.log 2>&1
+SVG_TO_PDF=-A
+SVG_TO_EPS=-E
+SVG_TO_PNG=-e
+PDFDIR=../pdf
+PNGDIR=../png
+EPSDIR=../eps
+
+SVGS=$(wildcard *.svg)
+PDFS=$(SVGS:.svg=.pdf)
+EPSS=$(SVGS:.svg=.eps)
+PNGS=$(SVGS:.svg=.png)
+
+vpath %.eps $(EPSDIR)
+
+first_rule:
+
+all: pdf png eps
+
+.SUFFIXES:
+.PHONY:
+.DONTCARE:
+#
+# PDF images creation
+pdf: $(PDFS)
+$(PDFS): | $(PDFDIR)
+$(PDFDIR):
+       @echo "Creating PDF images directory..."
+       @mkdir $(PDFDIR)
+       @echo "Done"
+%.pdf: %.svg
+       ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PDF} $(PDFDIR)/$@ $< $(INKSCAPE_OUTPUT)
+#
+# EPS images creation
+vpath %.pdf $(PDFDIR)
+eps: $(EPSS)
+$(EPSS): | $(EPSDIR)
+$(EPSDIR):
+       @echo "Creating EPS images directory..."
+       @mkdir $(EPSDIR)
+       @echo "Done"
+%.eps: %.svg
+       ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_EPS} $(EPSDIR)/$@ $< $(INKSCAPE_OUTPUT)
+#
+# PNG images creation
+vpath %.png $(PNGDIR)
+png: $(PNGS)
+$(PNGS): | $(PNGDIR)
+$(PNGDIR):
+       @echo "Creating PNG images directory..."
+       @mkdir $(PNGDIR)
+       @echo "Done"
+%.png: %.svg
+       ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PNG} $(PNGDIR)/$@ $< $(INKSCAPE_OUTPUT)
+
+clean:
+       @echo " "
+       @echo "Cleaning all generated images..."
+       @rm -rf $(PDFDIR)
+       @rm -rf $(PNGDIR)
+       @rm -rf $(EPSDIR)
+       @echo "All generated images cleaned."
+       @echo "Deleting log files"
+       @rm -f *.log
+       @echo "Everything cleaned up"
+
+distclean: clean
index 2f8e5917ef1efdbd9250a2c22da05a271db0cadb..6055d3ecab39925c9df57894512d07c648b61f1c 100644 (file)
@@ -78,7 +78,7 @@ pdfcovers:
        @echo "Covers done."
        @echo ""
 
-external-references: destdir updateversion pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -86,7 +86,7 @@ external-references: destdir updateversion pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with PDFLATEX compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
index 289b3a79e37b28eabacca2db7dfef418c202b129..360c5aa0f16ce2a7040aed4f49772e608cde91aa 100644 (file)
@@ -46,12 +46,6 @@ all: pdftex web mini-clean
 .DONTCARE:
 
 
-pdfcovers:
-       @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..."
        @(cd ${IMAGES}/svg ; make pdf)
@@ -102,7 +96,7 @@ pdfcovers:
        @echo "Covers done."
        @echo ""
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -110,7 +104,7 @@ external-references: updateversion destdir pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
index dc9887729783322694febf0ae1ca12dd431e8486..2097906f1fe81270d5861359b67ec8142caa04b7 100644 (file)
@@ -111,7 +111,7 @@ commonfiles:
        @(for L in $(LICENCES); do ln -sf $$L .; done)
        @echo "Done"
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -119,7 +119,7 @@ external-references: updateversion destdir pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
index 58be8110a8bde0c7dd171a75cd6e05fb6f164399..3ae5bc3cb3a5066181ef069388c955f82ec236b1 100644 (file)
@@ -36,7 +36,7 @@
 
 DOC=misc
 MAINDOC=Bacula_Miscellaneous_Guide.html
-IMAGES=@BUILD_DIR@/images
+IMAGES=../../../images
 DOCDIR=`pwd`
 TEXFILES=$(wildcard *tex)
 MAKEFORWEB=$(DOCDIR)/web.makefile
@@ -72,12 +72,6 @@ destdir:
        @mkdir -p $(PDF_DEST_DIR) $(HTML_DEST_DIR)
        echo "Output directories done"
 
-pdfcovers:
-       @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..."
        @(cd ${IMAGES}/svg ; make pdf)
@@ -115,7 +109,7 @@ pdfcovers:
        @echo "Covers done."
        @echo ""
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -123,7 +117,7 @@ external-references: updateversion destdir pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
index 8128c5fcfe8bf1e1edf3b50b3005e893f95e0aa7..fc694ddff234e779228ee85abb55d89e90e53bd6 100644 (file)
@@ -35,7 +35,7 @@
 #
 DOC=problems
 MAINDOC=Bacula_Problem_Resolution_G.html
-IMAGES=@BUILD_DIR@/images
+IMAGES=../../../images
 DOCDIR=`pwd`
 TEXFILES=$(wildcard *tex)
 MAKEFORWEB=$(DOCDIR)/web.makefile
@@ -64,12 +64,6 @@ all: pdftex web mini-clean
 .PHONY:
 .DONTCARE:
 
-pdfcovers:
-       @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..."
        @(cd ${IMAGES}/svg ; make pdf)
@@ -113,7 +107,7 @@ pdfcovers:
        @echo "Covers done."
        @echo ""
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -121,7 +115,7 @@ external-references: updateversion destdir pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
index bb068ef52ffc0974577c9ff2452ccbb2e32630ab..775d9a19495b9407a63e2806a733dfc62a151770 100644 (file)
@@ -71,12 +71,6 @@ destdir:
        @mkdir -p $(PDF_DEST_DIR) $(HTML_DEST_DIR)
        echo "Output directories done"
 
-pdfcovers:
-       @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..."
        @(cd ${IMAGES}/svg ; make pdf)
@@ -114,7 +108,7 @@ pdfcovers:
        @echo "Covers done."
        @echo ""
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
@@ -122,7 +116,7 @@ external-references: updateversion destdir pdfcovers
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
        @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
diff --git a/docs/update_version b/docs/update_version
new file mode 100755 (executable)
index 0000000..db455ed
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Script file to update the Bacula version
+#  It only needs to be run once for each version.
+#  Alternatively, you can simply edit the file
+#   manuals/version.tex and put the correct version and date
+#   in that file.
+# The only thing this script does is to create the file:
+#   manuals/version.tex which contains the VERSION and the DATE
+#   on a single line.
+#
+BACULA_SOURCE=$HOME/bee/bacula/bacula/src
+out=/tmp/$$
+VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
+DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
+echo "s%@VERSION@%${VERSION}%g" >${out}
+echo "s%@DATE@%${DATE}%g" >>${out}
+sed -f ${out} manuals/version.tex.in >manuals/version.tex
+rm -f ${out}