From ebf69a5ae66bb81b6be9ac24d290d9d5b44b9bd9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 5 Jun 2003 22:54:56 +0000 Subject: Fix the building of the docs in all formats: - legalnotice should be in (Developer docs) - Generate embedded PostScript versions of the PNG files in projdoc/imagefiles - Use either the PNG or the EPS images, depending on the desired output format. Check CUPS-printing.xml diff for details (This used to be commit 9992d5452d96508dc5dedc146f62e28d03b53ecc) --- docs/docbook/Makefile.in | 19 +++++++-- docs/docbook/configure | 72 +++++++++++++++++++++++++++++++ docs/docbook/configure.in | 2 + docs/docbook/devdoc/dev-doc.xml | 11 ++--- docs/docbook/projdoc/CUPS-printing.xml | 77 +++++++++++++++++++++++++++------- docs/docbook/projdoc/Speed.xml | 2 +- 6 files changed, 155 insertions(+), 28 deletions(-) diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in index 59e7492856..472faffab5 100644 --- a/docs/docbook/Makefile.in +++ b/docs/docbook/Makefile.in @@ -33,13 +33,16 @@ PDFLATEX = @PDFLATEX@ LATEX = @LATEX@ DVIPS = @DVIPS@ HTMLDOC = @HTMLDOC@ +PNGTOPNM = @PNGTOPNM@ +PNMTOPS = @PNMTOPS@ +XMLTO = @XMLTO@ SRCDIR = @srcdir@ MANDIR=../manpages HTMLDIR=../htmldocs MANPROJDOC = manpages PROJDOC = projdoc +IMAGEPROJDIR = $(PROJDOC)/imagefiles DEVDOC = devdoc -XMLTO = @XMLTO@ SMBDOTCONFDOC = smbdotconf PSDIR = .. PDFDIR = .. @@ -51,6 +54,8 @@ FAQDIR = ../faq MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES)) MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES)) +PROJDOC_IMAGES_PNG = $(wildcard $(IMAGEPROJDIR)/*.png) +PROJDOC_IMAGES_EPS=$(patsubst %.png,%.eps,$(wildcard $(IMAGEPROJDIR)/*.png)) PROJDOC_DEPS = $(PROJDOC)/*.xml $(PROJDOC)/attributions.xml DEVDOC_DEPS = $(DEVDOC)/*.xml $(DEVDOC)/attributions.xml @@ -111,7 +116,7 @@ dev-doc.tex: $(DEVDOC)/dev-doc.xml $(DEVDOC_DEPS) @$(XSLTPROC) --output $@ xslt/latex.xsl $< # Adobe PDF files -$(PDFDIR)/Samba-HOWTO-Collection.pdf: samba-doc.tex +$(PDFDIR)/Samba-HOWTO-Collection.pdf: samba-doc.tex $(PROJDOC_IMAGES_PNG) @echo "Building LaTeX sources via $(PDFLATEX)..." @$(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \ $(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \ @@ -127,8 +132,10 @@ $(PDFDIR)/Samba-Developers-Guide.pdf: dev-doc.tex @echo "done" @mv dev-doc.pdf $@ +epsimages: $(PROJDOC_IMAGES_EPS) + # DVI files -$(DVIDIR)/Samba-HOWTO-Collection.dvi: samba-doc.tex +$(DVIDIR)/Samba-HOWTO-Collection.dvi: samba-doc.tex $(PROJDOC_IMAGES_EPS) @echo "Building LaTeX sources via $(LATEX)..." @$(LATEX) $< 2>&1 | grep 'Rerun to get cross-references right' && \ $(LATEX) $< 2>&1 | grep 'Rerun to get cross-references right' && \ @@ -144,6 +151,9 @@ $(DVIDIR)/Samba-Developers-Guide.dvi: dev-doc.tex @echo "done" @mv dev-doc.dvi $@ +$(IMAGEPROJDIR)/%.eps: $(IMAGEPROJDIR)/%.png + @$(PNGTOPNM) $< | $(PNMTOPS) > $@ + # PostScript files $(PSDIR)/Samba-HOWTO-Collection.ps: $(DVIDIR)/Samba-HOWTO-Collection.dvi $(DVIPS) -o $@ $< @@ -159,7 +169,7 @@ $(HTMLDIR): CSS: $(HTMLDIR) xslt/html/samba.css @cp xslt/html/samba.css $(HTMLDIR)/ -$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.xml $(PROJDOC_DEPS) +$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.xml $(PROJDOC_DEPS) $(PROJDOC_IMAGES_PNG) @$(XSLTPROC) --output $@ xslt/html.xsl $< $(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.xml $(DEVDOC_DEPS) @@ -216,4 +226,5 @@ clean: @rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(HTMLDIR)/*.css $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf @rm -f $(MANPROJDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/parameters.*.xml @rm -f samba-doc.* dev-doc.* $(PROJDOC)/attributions.xml + @rm -f $(IMAGEPROJDIR)/*.eps diff --git a/docs/docbook/configure b/docs/docbook/configure index d2f8c5b7e4..303ea97f57 100755 --- a/docs/docbook/configure +++ b/docs/docbook/configure @@ -704,6 +704,76 @@ else echo "$ac_t""no" 1>&6 fi +# Extract the first word of "pngtopnm", so it can be a program name with args. +set dummy pngtopnm; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:711: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_PNGTOPNM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$PNGTOPNM" in + /*) + ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_PNGTOPNM="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +PNGTOPNM="$ac_cv_path_PNGTOPNM" +if test -n "$PNGTOPNM"; then + echo "$ac_t""$PNGTOPNM" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +# Extract the first word of "pnmtops", so it can be a program name with args. +set dummy pnmtops; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:746: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_PNMTOPS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$PNMTOPS" in + /*) + ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_PNMTOPS="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +PNMTOPS="$ac_cv_path_PNMTOPS" +if test -n "$PNMTOPS"; then + echo "$ac_t""$PNMTOPS" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + DOC_BUILD_DATE=`date '+%d-%m-%Y'` @@ -857,6 +927,8 @@ s%@PDFLATEX@%$PDFLATEX%g s%@XMLTO@%$XMLTO%g s%@LATEX@%$LATEX%g s%@DVIPS@%$DVIPS%g +s%@PNGTOPNM@%$PNGTOPNM%g +s%@PNMTOPS@%$PNMTOPS%g s%@DOC_BUILD_DATE@%$DOC_BUILD_DATE%g CEOF diff --git a/docs/docbook/configure.in b/docs/docbook/configure.in index 3b0c55e3ec..25abecafe1 100644 --- a/docs/docbook/configure.in +++ b/docs/docbook/configure.in @@ -12,6 +12,8 @@ fi AC_PATH_PROG(XMLTO, xmlto) AC_PATH_PROG(LATEX, latex) AC_PATH_PROG(DVIPS, dvips) +AC_PATH_PROG(PNGTOPNM, pngtopnm) +AC_PATH_PROG(PNMTOPS, pnmtops) DOC_BUILD_DATE=`date '+%d-%m-%Y'` AC_SUBST(DOC_BUILD_DATE) diff --git a/docs/docbook/devdoc/dev-doc.xml b/docs/docbook/devdoc/dev-doc.xml index cd77a0b810..db0032ccef 100644 --- a/docs/docbook/devdoc/dev-doc.xml +++ b/docs/docbook/devdoc/dev-doc.xml @@ -30,13 +30,9 @@ SAMBA Team
samba@samba.org
-
- - -Abstract - + -Last Update : Mon Sep 30 15:23:53 CDT 2002 +Last Update : Fri Jun 6 00:45:54 CEST 2003 @@ -57,7 +53,7 @@ distribution. A copy can be found on-line at http://www.fsf.org/licenses/gpl.txt - + @@ -70,6 +66,7 @@ url="http://www.fsf.org/licenses/gpl.txt">http://www.fsf.org/licenses/gpl.txt + diff --git a/docs/docbook/projdoc/CUPS-printing.xml b/docs/docbook/projdoc/CUPS-printing.xml index 03d4ed8d4d..4d0adca6ac 100644 --- a/docs/docbook/projdoc/CUPS-printing.xml +++ b/docs/docbook/projdoc/CUPS-printing.xml @@ -573,7 +573,10 @@ Systems.Their Core Graphic Engine uses a
Windows Printing to a local Printer - + + + +
@@ -655,7 +658,10 @@ is CUPS.... ;-)
Printing to a Postscript Printer - + + + +
@@ -685,7 +691,10 @@ to non-PostScript hardware.
Ghostscript as a RIP for non-postscript printers - + + + +
@@ -1090,7 +1099,10 @@ print options already embedded into the file.
Prefiltering in CUPS to form Postscript - + + + +
@@ -1109,7 +1121,10 @@ stapling an punching it, etc.) into the PostScript file.
Adding Device-specific Print Options - + + + +
@@ -1150,7 +1165,10 @@ that are able to generate device-specific printer data.
Postscript to intermediate Raster format - + + + +
@@ -1169,7 +1187,10 @@ than one vendor financing the development of CUPS raster drivers).
CUPS-raster production using Ghostscript - + + + +
@@ -1205,7 +1226,10 @@ filtering:
Image format to CUPS-raster format conversion - + + + +
@@ -1230,7 +1254,10 @@ closely as possible with CUPS.
Raster to Printer Specific formats - + + + +
@@ -1730,7 +1757,10 @@ advantages) than other methods.
cupsomatic/foomatic processing versus Native CUPS - + + + +
@@ -2018,7 +2048,10 @@ clients.
Print Driver execution on the Client - + + + +
@@ -2038,7 +2071,10 @@ understand.
Print Driver execution on the Server - + + + +
@@ -2113,7 +2149,10 @@ simply use printing = sysv).
Printing via CUPS/samba server - + + + +
@@ -3013,7 +3052,10 @@ not intended to, and does not work with, "raw" queues!
cupsaddsmb flowchart - + + + +
@@ -3462,7 +3504,7 @@ driver installed". Fourth Step: Put all required Driver Files into Samba's -<parameter>[print$]</parameter> +[print$] @@ -5746,7 +5788,10 @@ files from the Adobe website.
CUPS Printing Overview - + + + +
diff --git a/docs/docbook/projdoc/Speed.xml b/docs/docbook/projdoc/Speed.xml index 6fa361d50c..cdf2246b9f 100644 --- a/docs/docbook/projdoc/Speed.xml +++ b/docs/docbook/projdoc/Speed.xml @@ -222,7 +222,7 @@ performance. Check the sections on the various clients in -Samba performance problem due changing kernel (2.4.20 Linux kernel) +Samba performance problem due changing kernel Hi everyone. I am running Gentoo on my server and samba 2.2.8a. Recently -- cgit