Commit 851c3b87 authored by unknown's avatar unknown

work to create nusphere.pdf automagically.


Docs/Makefile.am:
  removed print-manual.pdf
  added nusphere.pdf
Docs/manual.texi:
  cleaned up the header a bit
  added conditionals for nusphere.pdf
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent 679bf55a
mwagner@evoq.home.mwagner.org mwagner@evoq.home.mwagner.org
sasha@mysql.sashanet.com sasha@mysql.sashanet.com
jcole@tetra.spaceapes.com
...@@ -69,12 +69,17 @@ manual.pdf: manual.texi ...@@ -69,12 +69,17 @@ manual.pdf: manual.texi
touch $@ touch $@
# Target to produce NuSphere Manual # Target to produce NuSphere Manual
print-manual.pdf: manual.texi nusphere.pdf: manual.texi
cat manual.texi | sed -e 's|@image{[^}]*} *||g' > manual-tmp.texi; \ cat manual.texi \
| sed -e 's/@example/@smallexample/g' \
-e 's/@end example/@end smallexample/g' \
-e 's/@c ifnusphere //g' \
-e 's|@image{[^}]*} *||g' \
> manual-tmp.texi; \
pdftex --interaction=nonstopmode '\input manual-tmp.texi'; \ pdftex --interaction=nonstopmode '\input manual-tmp.texi'; \
pdftex --interaction=nonstopmode '\pdfcompresslevel=9' \ pdftex --interaction=nonstopmode '\pdfcompresslevel=9' \
'\input manual-tmp.texi'; \ '\input manual-tmp.texi'; \
mv manual-tmp.pdf $@; \ mv manual-tmp.pdf nusphere.pdf; \
rm -f manual-tmp.* ; \ rm -f manual-tmp.* ; \
touch $@ touch $@
......
...@@ -8,15 +8,24 @@ ...@@ -8,15 +8,24 @@
@c ********************************************************* @c *********************************************************
@c @c
@c %**start of header @c %**start of header
@c there's a better way to do this.. i just don't know it yet
@c sed will remove the "@c ifnusphere " to make this valid
@c ifnusphere @set nusphere 1
@setfilename mysql.info @setfilename mysql.info
@c We want the types in the same index @c We want the types in the same index
@syncodeindex tp fn @syncodeindex tp fn
@c Get version info. This file is generated by the Makefile!! @c Get version info. This file is generated by the Makefile!!
@include include.texi @include include.texi
@ifclear tex-debug @ifclear tex-debug
@c This removes the black squares in the right margin @c This removes the black squares in the right margin
@finalout @finalout
@end ifclear @end ifclear
@c Set background for HTML @c Set background for HTML
@set _body_tags BGCOLOR=silver TEXT=#000000 LINK=#101090 VLINK=#7030B0 @set _body_tags BGCOLOR=silver TEXT=#000000 LINK=#101090 VLINK=#7030B0
@c Set some style elements for the manual in HTML form. 'suggested' @c Set some style elements for the manual in HTML form. 'suggested'
...@@ -24,11 +33,29 @@ ...@@ -24,11 +33,29 @@
@c lime, maroon, navy, olive, purple, red, silver, teal, white, and @c lime, maroon, navy, olive, purple, red, silver, teal, white, and
@c yellow. From Steeve Buehler <ahr@YogElements.com> @c yellow. From Steeve Buehler <ahr@YogElements.com>
@set _extra_head <style> code {color:purple} tt {color:green} samp {color:navy} pre {color:maroon} </style> @set _extra_head <style> code {color:purple} tt {color:green} samp {color:navy} pre {color:maroon} </style>
@settitle @strong{MySQL} Reference Manual for version @value{mysql_version}. @settitle @strong{MySQL} Reference Manual for version @value{mysql_version}.
@c We want single-sided heading format, with chapters on new pages. To @c We want single-sided heading format, with chapters on new pages. To
@c get double-sided format change 'on' below to 'odd' @c get double-sided format change 'on' below to 'odd'
@ifclear nusphere
@setchapternewpage on @setchapternewpage on
@end ifclear
@ifset nusphere
@setchapternewpage odd
@end ifset
@paragraphindent 0 @paragraphindent 0
@ifset nusphere
@smallbook
@end ifset
@ifset nusphere
@setcontentsaftertitlepage
@end ifset
@c %**end of header @c %**end of header
@ifinfo @ifinfo
...@@ -56,8 +83,17 @@ END-INFO-DIR-ENTRY ...@@ -56,8 +83,17 @@ END-INFO-DIR-ENTRY
@c change this to double if you want formatting for double-sided @c change this to double if you want formatting for double-sided
@c printing @c printing
@headings single @headings single
@ifclear nusphere
@everyheading @thispage @| @| @thischapter @everyheading @thispage @| @| @thischapter
@everyfooting @| @| Version: @value{mysql_version} Printed: @today{} @everyfooting @| @| Version: @value{mysql_version} Printed: @today{}
@end ifclear
@ifset nusphere
@oddheading @thischapter @| @| @thispage
@evenheading @thispage @| @| @thischapter
@end ifset
@end iftex @end iftex
@node Top, Introduction, (dir), (dir) @node Top, Introduction, (dir), (dir)
...@@ -36545,6 +36581,16 @@ ODBC and VisualC++ interface questions. ...@@ -36545,6 +36581,16 @@ ODBC and VisualC++ interface questions.
@strong{MySQL} server. @strong{MySQL} server.
@end table @end table
@c we don't want the entire change history in the nusphere manual
@ifset nusphere
@node News, Bugs, Credits, Top
@appendix MySQL change history
The MySQL change history can be found in the latest version of the mysql
manual at @url{http://www.mysql.com/documentation/manual/}
@end ifset
@ifclear nusphere
@node News, Bugs, Credits, Top @node News, Bugs, Credits, Top
@appendix MySQL change history @appendix MySQL change history
...@@ -40715,6 +40761,7 @@ fields, the @code{BLOB} was garbage on output. ...@@ -40715,6 +40761,7 @@ fields, the @code{BLOB} was garbage on output.
@item @item
Fixed @code{DISTINCT} with calculated columns. Fixed @code{DISTINCT} with calculated columns.
@end itemize @end itemize
@end ifclear
@node Bugs, TODO, News, Top @node Bugs, TODO, News, Top
@appendix Known errors and design deficiencies in MySQL @appendix Known errors and design deficiencies in MySQL
...@@ -40861,7 +40908,7 @@ For platform-specific bugs, see the sections about compiling and porting. ...@@ -40861,7 +40908,7 @@ For platform-specific bugs, see the sections about compiling and porting.
@cindex TODO @cindex TODO
@node TODO, Porting, Bugs, Top @node TODO, Porting, Bugs, Top
@appendix List of things we want to add to MySQL in the future (The TODO) @appendix MySQL and the future (The TODO)
@menu @menu
* TODO future:: Things that must done in the very near future * TODO future:: Things that must done in the very near future
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment