Browse Source

Improve documentation generation (pdf only).

Add file VERSION that includes the FLTK version number (only), generate
fltk.pdf with automatic copyright year and doxygen version.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/49/head
Albrecht Schlosser 11 years ago
parent
commit
7aa27859a5
  1. 1
      VERSION
  2. 11
      documentation/Makefile
  3. 6
      documentation/src/fltk-book.tex.in

1
VERSION

@ -0,0 +1 @@
1.3.3

11
documentation/Makefile

@ -64,7 +64,7 @@ dist: all html pdf
alldocs: dist alldocs: dist
clean: clean:
$(RM) fltk.pdf refman.pdf $(RM) fltk.pdf refman.pdf src/fltk-book.tex
$(RMDIR) html latex $(RMDIR) html latex
$(RM) *~ *.bck *.bak *.log $(RM) *~ *.bck *.bak *.log
$(RM) $(MANPAGES) $(SRC_DOCDIR)/*.0 $(RM) $(MANPAGES) $(SRC_DOCDIR)/*.0
@ -148,7 +148,7 @@ html-online: html
pdf: refman.pdf pdf: refman.pdf
cp -f latex/refman.pdf fltk.pdf cp -f latex/refman.pdf fltk.pdf
refman.pdf: $(HTMLFILES) Doxybook refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex
-$(RMDIR) latex -$(RMDIR) latex
echo "Generating PDF documentation ..." echo "Generating PDF documentation ..."
$(DOXYDOC) Doxybook ;\ $(DOXYDOC) Doxybook ;\
@ -166,6 +166,13 @@ refman.pdf: $(HTMLFILES) Doxybook
done ; \ done ; \
cd ..) > pdfall.log 2>&1 cd ..) > pdfall.log 2>&1
src/fltk-book.tex: src/fltk-book.tex.in
DOXY_VERSION=`$(DOXYDOC) --version`; \
YEAR=`date +%Y`; \
FLTK_VERSION=`cat ../VERSION`; \
sed -e"s/@YEAR@/$$YEAR/g" -e"s/@VERSION@/$$FLTK_VERSION/g" \
-e"s/@DOXY_VERSION@/$$DOXY_VERSION/g" < $< > $@
# #
# End of "$Id$". # End of "$Id$".
# #

6
documentation/src/fltk-book.tex → documentation/src/fltk-book.tex.in

@ -34,7 +34,7 @@
\begin{titlepage} \begin{titlepage}
\vspace*{4.5cm} \vspace*{4.5cm}
\begin{center} \begin{center}
{\Huge FLTK 1.3.2 Programming Manual}\\ {\Huge FLTK @VERSION@ Programming Manual}\\
\vspace*{2cm} \vspace*{2cm}
\begin{ImageNoCaption} \begin{ImageNoCaption}
\mbox{\includegraphics[width=6cm]{FL200}} \mbox{\includegraphics[width=6cm]{FL200}}
@ -44,7 +44,7 @@
Revision 9 by F. Costantini, D. Gibson, M. Melcher, \\ Revision 9 by F. Costantini, D. Gibson, M. Melcher, \\
A. Schlosser, B. Spitzak, and M. Sweet.}\\ A. Schlosser, B. Spitzak, and M. Sweet.}\\
\vspace*{1.5cm} \vspace*{1.5cm}
{\large Copyright 1998-2012 by Bill Spitzak and others.}\\ {\large Copyright 1998-@YEAR@ by Bill Spitzak and others.}\\
\vspace*{0.75cm} \vspace*{0.75cm}
{\Small {\Small
This software and manual are provided under the terms of the GNU Library General Public License.}\\ This software and manual are provided under the terms of the GNU Library General Public License.}\\
@ -53,7 +53,7 @@ Permission is granted to reproduce this manual or any portion for any purpose,}\
{\Small {\Small
provided this copyright and permission notice are preserved.}\\ provided this copyright and permission notice are preserved.}\\
\vspace*{2.5cm} \vspace*{2.5cm}
{\large Generated by Doxygen 1.7.5}\\ {\large Generated by Doxygen @DOXY_VERSION@}\\
\vspace*{0.5cm} \vspace*{0.5cm}
\today{}\\ \today{}\\
\end{center} \end{center}
Loading…
Cancel
Save