summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-11-20 23:58:54 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:56 +0200
commit5650d3ce74fe826fe8cebdfd0d27f6ed1bbc839a (patch)
tree65b0ce0883660124eb24b6e6a789349068921895 /doc
parent1e45a1148f4d5a66357b71c630686c655f674cd6 (diff)
2006-11-21 Thomas Schwinge <tschwinge@gnu.org>
* doc/Makefrag.am (doc/web, html-local, ps-local, pdf-local): New targets to faciliate keeping the web pages of the GNU Mach Reference Manual updated.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefrag.am93
1 files changed, 93 insertions, 0 deletions
diff --git a/doc/Makefrag.am b/doc/Makefrag.am
index 169d2b8..21d07aa 100644
--- a/doc/Makefrag.am
+++ b/doc/Makefrag.am
@@ -24,3 +24,96 @@ info_TEXINFOS += \
doc/mach.texi
mach_TEXINFOS = \
doc/fdl.texi doc/gpl.texi
+
+#
+# Web pages of the GNU Mach Reference Manual.
+#
+
+web = doc/web
+
+# Prepare a checkout in `$(web)/' of the web pages of the GNU Mach Reference
+# Manual, using the same account that was used for the source code.
+.PHONY: $(web)
+$(web):
+ if test -d $@/CVS; then :; else \
+ mkdir $@ $@/CVS && \
+ sed -e s%cvsroot%web% \
+ < $(top_srcdir)/CVS/Root \
+ > $@/CVS/Root && \
+ echo hurd/gnumach-doc \
+ > $@/CVS/Repository && \
+ : > $@/CVS/Entries; \
+ fi
+ cd $@/ && \
+ cvs update
+ $(MAKE) $(AM_MAKEFLAGS) \
+ html \
+ ps \
+ pdf
+
+# Update the files, if such a checkout exists.
+html-local:
+ if test -d $(web); then \
+ ( cd $(web)/ && \
+ for f in *.html; do \
+ if test -f ../../$(HTMLS)/"$$f"; then :; else \
+ echo "\`$$f' isn't anymore. Removing." && \
+ rm "$$f" && \
+ cvs remove "$$f"; \
+ fi; \
+ done ) && \
+ cp $(HTMLS)/*.html $(web)/ && \
+ cd $(web)/ && \
+ { cvs add *.html || :; }; \
+ elif grep -q :ext: $(top_srcdir)/CVS/Root; then \
+ echo "*** As it seems that you'd be allowed to check in the" \
+ "possible resulting fixes, you may cosider running" \
+ " \`make $(web)' to get a checkout of the web pages of the" \
+ "GNU Mach manual and have possible changes installed into" \
+ "\`$(web)/', ready for checking them in in there."; \
+ fi
+ps-local:
+ if test -d $(web); then \
+ ( cd $(web)/ && \
+ for f in *.ps; do \
+ case \ $(PSS)\ in \
+ \ doc/"$$f"\ ) :;; \
+ *) echo "\`$$f' isn't anymore. Removing." && \
+ rm -f "$$f" "$$f".ps && \
+ cvs remove "$$f" "$$f".ps ;; \
+ esac; \
+ done ) && \
+ cp $(PSS) $(web)/ && \
+ cd $(web)/ && \
+ for f in *.ps; do \
+ gzip -9 < "$$f" > "$$f".gz; \
+ done && \
+ { cvs add *.ps *.ps.gz || :; }; \
+ elif grep -q :ext: $(top_srcdir)/CVS/Root; then \
+ echo "*** As it seems that you'd be allowed to check in the" \
+ "possible resulting fixes, you may cosider running" \
+ " \`make $(web)' to get a checkout of the web pages of the" \
+ "GNU Mach manual and have possible changes installed into" \
+ "\`$(web)/', ready for checking them in in there."; \
+ fi
+pdf-local:
+ if test -d $(web); then \
+ ( cd $(web)/ && \
+ for f in *.pdf; do \
+ case \ $(PDFS)\ in \
+ \ doc/"$$f"\ ) :;; \
+ *) echo "\`$$f' isn't anymore. Removing." && \
+ rm "$$f" && \
+ cvs remove "$$f";; \
+ esac; \
+ done ) && \
+ cp $(PDFS) $(web)/ && \
+ cd $(web)/ && \
+ { cvs add *.pdf || :; }; \
+ elif grep -q :ext: $(top_srcdir)/CVS/Root; then \
+ echo "*** As it seems that you'd be allowed to check in the" \
+ "possible resulting fixes, you may cosider running" \
+ " \`make $(web)' to get a checkout of the web pages of the" \
+ "GNU Mach manual and have possible changes installed into" \
+ "\`$(web)/', ready for checking them in in there."; \
+ fi