changeset 12154:22c99c8cfcb6

Add Makefile rules to auto-generate AUTHORS file from contributors.texi
author Rik <octave@nomad.inbox5.com>
date Mon, 24 Jan 2011 21:41:24 -0800
parents e0e50f48df37
children 7e856c31ffae
files AUTHORS ChangeLog Makefile.am doc/ChangeLog doc/Makefile.am doc/interpreter/Makefile.am doc/interpreter/preface.txi
diffstat 7 files changed, 29 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
deleted file mode 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-24  Rik  <octave@nomad.inbox5.com>
+
+	* AUTHORS: Remove.  File now auto-generated from contributors.texi.
+	* Makefile.am: Add rule for AUTHORS file.
+
 2011-01-24  John W. Eaton  <jwe@octave.org>
 
 	* NEWS: Note change in audio/mu2lin.
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,7 +26,7 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-BUILT_DISTFILES = BUGS INSTALL.OCTAVE
+BUILT_DISTFILES = AUTHORS BUGS INSTALL.OCTAVE
 
 EXTRA_DIST = \
   BUGS \
@@ -101,8 +101,9 @@
 noinst_SCRIPTS = run-octave
 
 INFO_FILES = \
-  INSTALL.OCTAVE \
-  BUGS
+  AUTHORS \
+  BUGS \
+  INSTALL.OCTAVE
 
 CLEANFILES = $(bin_PROGRAMS) $(bin_SCRIPTS) $(BUILT_SOURCES)
 
@@ -148,9 +149,9 @@
 	  cp $< $@; \
 	fi
 
-BUGS INSTALL.OCTAVE:
+AUTHORS BUGS INSTALL.OCTAVE:
 	$(MAKE) -C doc ../$@
-.PHONY: BUGS INSTALL.OCTAVE
+.PHONY: AUTHORS BUGS INSTALL.OCTAVE
 
 octetc_DATA = NEWS
 
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-24  Rik  <octave@nomad.inbox5.com>
+
+	* Makefile.am, interpreter/Makefile.am: Add rule to build AUTHORS file.
+	* interpreter/preface.txi: Add @ifclear rule to build AUTHORS file.
+
 2011-01-23  Rik  <octave@nomad.inbox5.com>
 
 	* interpreter/install.txi: Redo build instructions for release 3.4.
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -32,7 +32,7 @@
 
 SUBDIRS = faq interpreter liboctave refcard
 
-../BUGS ../INSTALL.OCTAVE:
+../AUTHORS ../BUGS ../INSTALL.OCTAVE:
 	$(MAKE) -C interpreter ../$@
-.PHONY: ../BUGS ../INSTALL.OCTAVE
+.PHONY: ../AUTHORS ../BUGS ../INSTALL.OCTAVE
 
--- a/doc/interpreter/Makefile.am
+++ b/doc/interpreter/Makefile.am
@@ -209,6 +209,12 @@
 	  --no-validate --no-headers --no-split --output BUGS $<
 	mv BUGS ../../BUGS
 
+../../AUTHORS: preface.texi contributors.texi
+	rm -f AUTHORS
+	-$(MAKEINFO) -D AUTHORSONLY \
+	  --no-validate --no-headers --no-split --output AUTHORS $<
+	mv AUTHORS ../../AUTHORS
+
 undocumented_list:
 	rm -f $@
 	-$(PERL) $(srcdir)/doccheck/mk_undocumented_list > $@
--- a/doc/interpreter/preface.txi
+++ b/doc/interpreter/preface.txi
@@ -16,6 +16,7 @@
 @c along with Octave; see the file COPYING.  If not, see
 @c <http://www.gnu.org/licenses/>.
 
+@ifclear AUTHORSONLY
 @node Preface
 @unnumbered Preface
 @cindex contributors
@@ -70,13 +71,15 @@
 @node Acknowledgements
 @unnumberedsec Acknowledgements
 @cindex acknowledgements
+@end ifclear
 
-Many people have already contributed to Octave's development.  The
+Many people have contributed to Octave's development.  The
 following people have helped code parts of Octave or aided in
 various other ways (listed alphabetically).
 
 @include contributors.texi
 
+@ifclear AUTHORSONLY
 Special thanks to the following people and organizations for
 supporting the development of Octave:
 
@@ -191,3 +194,4 @@
 
 Octave can also be downloaded from @url{http://www.octave.org}, where
 additional information is available.
+@end ifclear