Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* 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.
  • Loading branch information...
commit d97446447214cdb8589d9d15d3161cdf9ed7be28 1 parent 1c011cc
@lehenbauer lehenbauer authored
View
1  .gitignore
@@ -7,3 +7,4 @@ pkgIndex.tcl
*.o
*.so
tcllauncher
+doc/tcllauncher.n
View
9 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
* Deploy pidfile_* and daemonize functions.
View
22 Makefile.in
@@ -75,7 +75,7 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
-datarootdir = @datarootdir@
+#datarootdir = @datarootdir@
datadir = @datadir@
mandir = @mandir@
@@ -198,11 +198,21 @@ libraries:
# end user machine when building from source.
#========================================================================
-doc:
- @echo "If you have documentation to create, place the commands to"
- @echo "build the docs in the 'doc:' target. For example:"
- @echo " xml2nroff sample.xml > sample.n"
- @echo " xml2html sample.xml > sample.html"
+DTPLITE=@DTPLITE@
+
+doc: $(srcdir)/doc/tcllauncher.n
+
+$(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
View
15 aclocal.m4
@@ -7,3 +7,18 @@ builtin(include,tclconfig/tcl.m4)
#
# 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], [:])
+])
+
View
6 configure.in
@@ -182,6 +182,12 @@ TEA_MAKE_LIB
TEA_PROG_TCLSH
#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
# that isn't normally substituted. Make configure substitute that stuff
# too!
View
1  doc/tcllauncher.man
@@ -2,7 +2,6 @@
[moddesc {Tcl application launcher for servers}]
[copyright {2007-2009 FlightAware LLC (BSD Liscense)}]
[titledesc {Tcl application launcher}]
-[category {app launcher}]
[description]
[para]
Please sign in to comment.
Something went wrong with that request. Please try again.