Skip to content

Commit

Permalink
* Add aclocal.m4 to create a rule for finding the path to dtplite and
Browse files Browse the repository at this point in the history
  modify configure.in to use that rule.

* Alter Makefile.in to have rules for building the tcllauncher.n
  manpage using dtplite based on the tcllauncher.man Tcl doctools file.
  • Loading branch information
lehenbauer committed Jul 17, 2009
1 parent 1c011cc commit d974464
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@ pkgIndex.tcl
*.o *.o
*.so *.so
tcllauncher tcllauncher
doc/tcllauncher.n
9 changes: 8 additions & 1 deletion ChangeLog
@@ -1,4 +1,11 @@
$Id: ChangeLog,v 1.7 2008-11-18 21:48:24 karl Exp $ ChangeLog

2009-07-17 karl
* Add aclocal.m4 to create a rule for finding the path to dtplite and
modify configure.in to use that rule.

* Alter Makefile.in to have rules for building the tcllauncher.n
manpage using dtplite based on the tcllauncher.man Tcl doctools file.


2009-06-11 karl 2009-06-11 karl
* Deploy pidfile_* and daemonize functions. * Deploy pidfile_* and daemonize functions.
Expand Down
22 changes: 16 additions & 6 deletions Makefile.in
Expand Up @@ -75,7 +75,7 @@ exec_prefix = @exec_prefix@
bindir = @bindir@ bindir = @bindir@
libdir = @libdir@ libdir = @libdir@
includedir = @includedir@ includedir = @includedir@
datarootdir = @datarootdir@ #datarootdir = @datarootdir@
datadir = @datadir@ datadir = @datadir@
mandir = @mandir@ mandir = @mandir@


Expand Down Expand Up @@ -198,11 +198,21 @@ libraries:
# end user machine when building from source. # end user machine when building from source.
#======================================================================== #========================================================================


doc: DTPLITE=@DTPLITE@
@echo "If you have documentation to create, place the commands to"
@echo "build the docs in the 'doc:' target. For example:" doc: $(srcdir)/doc/tcllauncher.n
@echo " xml2nroff sample.xml > sample.n"
@echo " xml2html sample.xml > sample.html" $(srcdir)/doc/tcllauncher.n: $(srcdir)/doc/tcllauncher.man
@if [ -n "$(DTPLITE)" -a -x "$(DTPLITE)" ]; then \
echo "Building $@"; \
$(DTPLITE) -o $@ nroff $(srcdir)/doc/tcllauncher.man ; \
fi

tcllauncher.html: $(srcdir)/doc/tcllauncher.man
@if [ -n "$(DTPLITE)" -a -x "$(DTPLITE)" ]; then \
echo "Building $@"; \
$(DTPLITE) -o $@ html $(srcdir)/doc/hdp.man ; \
fi


install: all install-binaries install-libraries install-doc install: all install-binaries install-libraries install-doc


Expand Down
15 changes: 15 additions & 0 deletions aclocal.m4
Expand Up @@ -7,3 +7,18 @@ builtin(include,tclconfig/tcl.m4)
# #
# Add here whatever m4 macros you want to define for your package # Add here whatever m4 macros you want to define for your package
# #

#-------------------------------------------------------------------------
# TEA_PROG_DTPLITE
#
# Do we have a usable dtplite program to use in document generation?
#
# Results
# Sets up DTPLITE
#
#-------------------------------------------------------------------------

AC_DEFUN(TEA_PROG_DTPLITE, [
AC_PATH_TOOL([DTPLITE], [dtplite], [:])
])

6 changes: 6 additions & 0 deletions configure.in
Expand Up @@ -182,6 +182,12 @@ TEA_MAKE_LIB
TEA_PROG_TCLSH TEA_PROG_TCLSH
#TEA_PROG_WISH #TEA_PROG_WISH


# -------------------------------------------------------------------
# Find a usable dtplite (from tcllib) to use in document generation.
# -------------------------------------------------------------------

TEA_PROG_DTPLITE

# TCLLAUNCHER needs some stuff since it makes a tclsh-like executable # TCLLAUNCHER needs some stuff since it makes a tclsh-like executable
# that isn't normally substituted. Make configure substitute that stuff # that isn't normally substituted. Make configure substitute that stuff
# too! # too!
Expand Down
1 change: 0 additions & 1 deletion doc/tcllauncher.man
Expand Up @@ -2,7 +2,6 @@
[moddesc {Tcl application launcher for servers}] [moddesc {Tcl application launcher for servers}]
[copyright {2007-2009 FlightAware LLC (BSD Liscense)}] [copyright {2007-2009 FlightAware LLC (BSD Liscense)}]
[titledesc {Tcl application launcher}] [titledesc {Tcl application launcher}]
[category {app launcher}]
[description] [description]
[para] [para]


Expand Down

0 comments on commit d974464

Please sign in to comment.