FreeBSD Bugzilla – Attachment 20666 Details for
Bug 36432
Proposal for doc/share/mk: make folded books using psutils
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.97 KB, created by
Dmitry Morozovsky
on 2002-03-28 20:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Dmitry Morozovsky
Created:
2002-03-28 20:40:01 UTC
Size:
2.97 KB
patch
obsolete
>Index: doc.docbook.mk >=================================================================== >RCS file: /home/ncvs/doc/share/mk/doc.docbook.mk,v >retrieving revision 1.62 >diff -u -r1.62 doc.docbook.mk >--- doc.docbook.mk 2002/02/25 14:24:51 1.62 >+++ doc.docbook.mk 2002/03/28 20:30:21 >@@ -135,7 +135,7 @@ > JADEOPTS= ${JADEFLAGS} ${SGMLFLAGS} ${CATALOGS} > > KNOWN_FORMATS= html html.tar html-split html-split.tar \ >- txt rtf ps pdf tex dvi tar pdb >+ txt rtf ps folded.ps pdf folded.pdf tex dvi tar pdb > > CSS_SHEET?= ${DOC_PREFIX}/share/misc/docbook.css > PDFTEX_DEF?= ${DOC_PREFIX}/share/web2c/pdftex.def >@@ -191,6 +191,13 @@ > .if defined(PAPERSIZE) > DVIPSOPTS?= -t ${PAPERSIZE:L} ${DVIPSFLAGS} > .endif >+PSBOOK?= ${PREFIX}/bin/psbook >+PSBOOKSIGSZ?= 16 >+PSBMAXSIGPG?= 24 >+PSBOOKOPTS?= -s${PSBOOKSIGSZ} >+PSNUP?= ${PREFIX}/bin/psnup >+PSNUPOPTS?= -2 >+PS2PDF?= ${PREFIX}/bin/ps2pdf > > GZIP?= -9 > GZIP_CMD?= gzip -qf ${GZIP} >@@ -278,11 +285,19 @@ > CLEANFILES+= ${DOC}.aux ${DOC}.log > > .elif ${_cf} == "ps" >-CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex-ps >+CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex-ps ${DOC}.tex > >+.elif ${_cf} == "folded.ps" >+CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex-ps ${DOC}.tex \ >+ ${DOC}.ps ${DOC}.ps.gz >+ > .elif ${_cf} == "pdf" > CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.out ${DOC}.tex-pdf > >+.elif ${_cf} == "folded.pdf" >+CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex-ps ${DOC}.tex \ >+ ${DOC}.ps ${DOC}.folded.ps >+ > .elif ${_cf} == "pdb" > _docs+= ${.CURDIR:T}.pdb > CLEANFILES+= ${.CURDIR:T}.pdb >@@ -436,6 +451,23 @@ > ${DOC}.ps: ${DOC}.dvi > ${DVIPS} ${DVIPSOPTS} -o ${.TARGET} ${.ALLSRC} > >+${DOC}.folded.ps: ${DOC}.ps >+ @TOTALPAGES=`grep '^%%Pages: ' ${.ALLSRC} | \ >+ head -1 | sed 's/%%Pages://'`; \ >+ echo Total pages: $$TOTALPAGES; \ >+ if test $$TOTALPAGES -gt ${PSBMAXSIGPG}; then \ >+ echo Splitting by ${PSBOOKOPTS}; \ >+ ${PSBOOK} ${PSBOOKOPTS} ${.ALLSRC} | \ >+ ${PSNUP} ${PSNUPOPTS} > ${.TARGET}; \ >+ else \ >+ echo Splitting as on sig; \ >+ ${PSBOOK} ${.ALLSRC} | \ >+ ${PSNUP} ${PSNUPOPTS} > ${.TARGET}; \ >+ fi; true >+ >+${DOC}.folded.pdf: ${DOC}.folded.ps >+ ${PS2PDF} ${.ALLSRC} ${.TARGET} >+ > ${DOC}.tar: ${SRCS} ${LOCAL_IMAGES} ${LOCAL_CSS_SHEET} > ${TAR} cf ${.TARGET} -C ${.CURDIR} ${SRCS} \ > -C ${.OBJDIR} ${IMAGES} ${CSS_SHEET:T} >Index: doc.project.mk >=================================================================== >RCS file: /home/ncvs/doc/share/mk/doc.project.mk,v >retrieving revision 1.12 >diff -u -r1.12 doc.project.mk >--- doc.project.mk 2002/02/25 14:24:51 1.12 >+++ doc.project.mk 2002/03/28 20:30:21 >@@ -61,7 +61,7 @@ > # Master list of known target formats. The doc.<format>.mk files implement > # the code to convert from their source format to one or more of these target > # formats >-ALL_FORMATS= html html.tar html-split html-split.tar txt rtf ps pdf tex dvi tar pdb >+ALL_FORMATS= html html.tar html-split html-split.tar txt rtf ps folded.ps pdf folded.pdf tex dvi tar pdb > > # User-modifiable > LOCALBASE?= /usr/local
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36432
: 20666