From owner-svn-doc-projects@FreeBSD.ORG Sun Mar 31 21:35:33 2013 Return-Path: Delivered-To: svn-doc-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 29C3F8A2; Sun, 31 Mar 2013 21:35:33 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0C862182; Sun, 31 Mar 2013 21:35:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2VLZWFG098818; Sun, 31 Mar 2013 21:35:32 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2VLZWK5098816; Sun, 31 Mar 2013 21:35:32 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201303312135.r2VLZWK5098816@svn.freebsd.org> From: Gabor Kovesdan Date: Sun, 31 Mar 2013 21:35:32 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-projects@freebsd.org Subject: svn commit: r41331 - projects/xml-tools/share/mk X-SVN-Group: doc-projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for doc projects trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Mar 2013 21:35:33 -0000 Author: gabor Date: Sun Mar 31 21:35:32 2013 New Revision: 41331 URL: http://svnweb.freebsd.org/changeset/doc/41331 Log: - Remove more leftovers - Simplify image processing so that html always uses .png and printed formats always use .eps Modified: projects/xml-tools/share/mk/doc.docbook.mk projects/xml-tools/share/mk/doc.images.mk Modified: projects/xml-tools/share/mk/doc.docbook.mk ============================================================================== --- projects/xml-tools/share/mk/doc.docbook.mk Sun Mar 31 21:11:07 2013 (r41330) +++ projects/xml-tools/share/mk/doc.docbook.mk Sun Mar 31 21:35:32 2013 (r41331) @@ -115,7 +115,6 @@ KNOWN_FORMATS= html html.tar html-split epub txt rtf ps pdf tex dvi tar pdb CSS_SHEET?= ${DOC_PREFIX}/share/misc/docbook.css -PDFTEX_DEF?= ${DOC_PREFIX}/share/web2c/pdftex.def PRINTOPTS?= -ioutput.print -d ${DSLPRINT} ${PRINTFLAGS} @@ -254,9 +253,6 @@ CLEANFILES+= ${_curimage:T} ${_curimage: .elif ${_cf} == "pdf" CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.out ${DOC}.tex-pdf ${DOC}.tex-pdf-tmp \ ${DOC}.tex ${DOC}.fo -.for _curimage in ${IMAGES_PDF:M*share*} -CLEANFILES+= ${_curimage:T} ${_curimage:H:T}/${_curimage:T} -.endfor .for _curimage in ${LOCAL_IMAGES_EPS:M*share*} CLEANFILES+= ${_curimage:T} ${_curimage:H:T}/${_curimage:T} .endfor @@ -474,9 +470,6 @@ ${DOC}.dvi: ${DOC}.tex ${LOCAL_IMAGES_EP .if !target(${DOC}.pdf) ${DOC}.pdf: ${DOC}.ps ${IMAGES_PDF} -#.for _curimage in ${IMAGES_PDF:M*share*} -# ${CP} -p ${_curimage} ${.CURDIR:H:H}/${_curimage:H:S|${IMAGES_EN_DIR}/||:S|${.CURDIR}||} -#.endfor ${PS2PDF} ${DOC}.ps ${.TARGET} .endif Modified: projects/xml-tools/share/mk/doc.images.mk ============================================================================== --- projects/xml-tools/share/mk/doc.images.mk Sun Mar 31 21:11:07 2013 (r41330) +++ projects/xml-tools/share/mk/doc.images.mk Sun Mar 31 21:35:32 2013 (r41331) @@ -71,33 +71,20 @@ _IMAGES_TXT+= ${LOCAL_IMAGES_EN:M*.txt} _IMAGES_PIC= ${IMAGES:M*.pic} _IMAGES_PIC+= ${LOCAL_IMAGES_EN:M*.pic} -IMAGES_GEN_PNG= ${_IMAGES_EPS:S/.eps$/.png/} -IMAGES_GEN_EPS= ${_IMAGES_PNG:S/.png$/.eps/} -IMAGES_GEN_PDF= ${_IMAGES_EPS:S/.eps$/.pdf/} -IMAGES_SCR_PNG= ${_IMAGES_SCR:S/.scr$/.png/} -IMAGES_SCR_EPS= ${_IMAGES_SCR:S/.scr$/.eps/} -IMAGES_SCR_PDF= ${_IMAGES_SCR:S/.scr$/.pdf/} -IMAGES_SCR_TXT= ${_IMAGES_SCR:S/.scr$/.txt/} -IMAGES_PIC_PNG= ${_IMAGES_PIC:S/.pic$/.png/} -IMAGES_PIC_EPS= ${_IMAGES_PIC:S/.pic$/.eps/} -IMAGES_PIC_PDF= ${_IMAGES_PIC:S/.pic$/.pdf/} -IMAGES_GEN_PDF+= ${IMAGES_PIC_PDF} ${IMAGES_SCR_PDF} - -CLEANFILES+= ${IMAGES_GEN_PNG} ${IMAGES_GEN_EPS} ${IMAGES_GEN_PDF} -CLEANFILES+= ${IMAGES_SCR_PNG} ${IMAGES_SCR_EPS} ${IMAGES_SCR_TXT} -CLEANFILES+= ${IMAGES_PIC_PNG} ${IMAGES_PIC_EPS} ${_IMAGES_PIC:S/.pic$/.ps/} - -IMAGES_PNG= ${_IMAGES_PNG} ${IMAGES_GEN_PNG} ${IMAGES_SCR_PNG} ${IMAGES_PIC_PNG} -IMAGES_EPS= ${_IMAGES_EPS} ${IMAGES_GEN_EPS} ${IMAGES_SCR_EPS} ${IMAGES_PIC_EPS} -IMAGES_TXT= ${_IMAGES_TXT} ${IMAGES_SCR_TXT} +IMAGES_GEN_PNG= ${_IMAGES_EPS:S/.eps$/.png/} ${_IMAGES_SCR:S/.scr$/.png/} ${_IMAGES_PIC:S/.pic$/.png/} +IMAGES_GEN_EPS= ${_IMAGES_PNG:S/.png$/.eps/} ${_IMAGES_SCR:S/.scr$/.eps/} ${_IMAGES_PIC:S/.pic$/.eps/} + +CLEANFILES+= ${IMAGES_GEN_PNG} ${IMAGES_GEN_EPS} + +IMAGES_PNG= ${_IMAGES_PNG} ${IMAGES_GEN_PNG} +IMAGES_EPS= ${_IMAGES_EPS} ${IMAGES_GEN_EPS} LOCAL_IMAGES= ${IMAGES} LOCAL_IMAGES_PNG= ${_IMAGES_PNG} LOCAL_IMAGES_EPS= ${_IMAGES_EPS} LOCAL_IMAGES_TXT= ${_IMAGES_TXT} -LOCAL_IMAGES_PNG+= ${IMAGES_GEN_PNG} ${IMAGES_SCR_PNG} ${IMAGES_PIC_PNG} -LOCAL_IMAGES_EPS+= ${IMAGES_GEN_EPS} ${IMAGES_SCR_EPS} ${IMAGES_PIC_EPS} -LOCAL_IMAGES_TXT+= ${IMAGES_SCR_TXT} +LOCAL_IMAGES_PNG+= ${IMAGES_GEN_PNG} +LOCAL_IMAGES_EPS+= ${IMAGES_GEN_EPS} # The default resolution eps2png (82) assumes a 640x480 monitor, and is too # low for the typical monitor in use today. The resolution of 100 looks @@ -105,10 +92,6 @@ LOCAL_IMAGES_TXT+= ${IMAGES_SCR_TXT} # a 640x480 monitor. EPS2PNM_RES?= 100 -# We need to list ${_IMAGES_PNG} here since the images might be in a -# shared image directory. -IMAGES_PDF= ${IMAGES_GEN_PDF} ${_IMAGES_PNG} - # # Use suffix rules to convert .scr files to other formats .SUFFIXES: .scr .pic .png .ps .eps .txt @@ -142,9 +125,6 @@ IMAGES_PDF= ${IMAGES_GEN_PDF} ${_IMAGES_ -g`${EPSGEOM} -geom ${EPSGEOMOPTS} ${.TARGET:S/.png$/.eps/}` - \ | ${PNMTOPNG} > ${.TARGET} -.pic.ps: - ${PIC2PS} ${.ALLSRC} > ${.TARGET} - # When ghostscript built with A4=yes is used, ps2epsi's paper size also # becomes the A4 size. However, the ps2epsi fails to convert grops(1) # outputs, which is the letter size, and we cannot change ps2epsi's paper size @@ -178,25 +158,20 @@ IMAGES_PDF= ${IMAGES_GEN_PDF} ${_IMAGES_ # vice versa, leading to a loop in the dependency graph. Instead, build # the targets on the fly. -.for _curimage in ${IMAGES_GEN_PNG} -${_curimage}: ${_curimage:S/.png$/.eps/} +.for _curimage in ${_IMAGES_EPS:S/.eps$/.png/} +${_curimage}: ${_curimage:S/.png/.eps/} ${EPSGEOM} -offset ${EPSGEOMOPTS} ${.ALLSRC} \ | ${EPS2PNM} ${EPS2PNMOPTS} \ -g`${EPSGEOM} -geom ${EPSGEOMOPTS} ${.ALLSRC}` - \ | ${PNMTOPNG} > ${.TARGET} .endfor -.for _curimage in ${IMAGES_GEN_EPS} +.for _curimage in ${_IMAGES_EPS:S/.png$/.eps/} ${_curimage}: ${_curimage:S/.eps$/.png/} ${PNGTOPNM} ${PNGTOPNMOPTS} ${.ALLSRC} | \ ${PNMTOPS} ${PNMTOPSOPTS} > ${.TARGET} .endfor -.for _curimage in ${IMAGES_GEN_PDF} -${_curimage}: ${_curimage:S/.pdf$/.eps/} - ${EPSTOPDF} ${EPSTOPDFOPTS} --outfile=${.TARGET} ${.ALLSRC} -.endfor - .if ${.OBJDIR} != ${.CURDIR} .for _curimage in ${IMAGES} ${.OBJDIR}/${_curimage}: ${_curimage}