[release-notes/gnome-2-28] add files to pretend we're a real module
- From: Paul Cutler <pcutler src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [release-notes/gnome-2-28] add files to pretend we're a real module
- Date: Wed, 2 Sep 2009 12:50:23 +0000 (UTC)
commit 12021f03d79758e915b1c884844bd6d0c06e66cb
Author: Paul Cutler <pcutler gnome org>
Date: Wed Sep 2 07:50:18 2009 -0500
add files to pretend we're a real module
Makefile.am | 6 +
autogen.sh | 24 ++
configure.in | 11 +
help/README.txt | 5 +
help/gnome-doc-utils.make | 628 +++++++++++++++++++++++++++++++++++++++++++++
help/release-notes.omf.in | 10 +
6 files changed, 684 insertions(+), 0 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..e69de29
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..2d03dc6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
+SUBDIRS = help
+
+EXTRA_DIST = gnome-doc-utils.make
+DISTCLEANFILE = gnome-doc-utils.make
+DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..62900bc
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="release-notes"
+
+(test -f $srcdir/configure.in \
+ && test -d $srcdir/help) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME SVN"
+ exit 1
+}
+
+REQUIRED_AUTOMAKE_VERSION=1.6
+export REQUIRED_AUTOMAKE_VERSION
+
+USE_GNOME2_MACROS=1 . gnome-autogen.sh
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..3737b77
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,11 @@
+AC_INIT([release-notes],[2.26])
+
+AM_INIT_AUTOMAKE
+AM_MAINTAINER_MODE
+
+GNOME_DOC_INIT
+
+AC_OUTPUT([
+Makefile
+help/Makefile
+])
diff --git a/help/README.txt b/help/README.txt
new file mode 100644
index 0000000..d56a141
--- /dev/null
+++ b/help/README.txt
@@ -0,0 +1,5 @@
+Running make in this directory will generate translated Docbook .xml files from the .po files.
+
+Add translations to DOC_LINGUAS in this Makefile.am.
+
+Pleaes update the top-level ChangeLog.
diff --git a/help/gnome-doc-utils.make b/help/gnome-doc-utils.make
new file mode 100644
index 0000000..35bb2e3
--- /dev/null
+++ b/help/gnome-doc-utils.make
@@ -0,0 +1,628 @@
+# gnome-doc-utils.make - make magic for building documentation
+# Copyright (C) 2004-2005 Shaun McCance <shaunm gnome org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+################################################################################
+## @@ Generating Header Files
+
+## @ DOC_H_FILE
+## The name of the header file to generate
+DOC_H_FILE ?=
+
+## @ DOC_H_DOCS
+## The input DocBook files for generating the header file
+DOC_H_DOCS ?=
+
+$(DOC_H_FILE): $(DOC_H_DOCS);
+ @rm -f $@; touch $@;
+ echo 'const gchar* documentation_credits[] = {' >> $@
+ for doc in $(DOC_H_DOCS); do \
+ xsltproc $(_credits) $$doc; \
+ done | sort | uniq \
+ | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
+ | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@
+ echo ' NULL' >> $@
+ echo '};' >> $@
+ echo >> $@
+ for doc in $(DOC_H_DOCS); do \
+ docid=`echo $$doc | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
+ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
+ ids=`xsltproc --xinclude $(_ids) $$doc`; \
+ for id in $$ids; do \
+ echo '#define HELP_'`echo $$docid`'_'`echo $$id \
+ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@; \
+ done; \
+ echo >> $@; \
+ done;
+
+.PHONY: dist-header
+dist-doc-header: $(DOC_H_FILE)
+ $(INSTALL_DATA) $(srcdir)/$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)
+
+doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
+
+.PHONY: chean-doc-header
+_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
+clean: $(_clean_doc_header)
+distclean: $(_clean_doc_header)
+mostlyclean: $(_clean_doc_header)
+maintainer-clean: $(_clean_doc_header)
+clean-doc-header:
+ rm -f $(DOC_H_FILE)
+
+all: $(DOC_H_FILE)
+
+
+################################################################################
+## @@ Generating Documentation Files
+
+## @ DOC_MODULE
+## The name of the document being built
+DOC_MODULE ?=
+
+## @ DOC_ENTITIES
+## Files included with a SYSTEM entity
+DOC_ENTITIES ?=
+
+## @ DOC_INCLUDES
+## Files included with XInclude
+DOC_INCLUDES ?=
+
+## @ DOC_FIGURES
+## Figures and other external data
+DOC_FIGURES ?=
+
+## @ DOC_FORMATS
+## The default formats to be built and installed
+DOC_FORMATS ?= docbook
+_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
+
+## @ DOC_LINGUAS
+## The languages this document is translated into
+DOC_LINGUAS ?=
+
+## @ RNGDOC_DIRS
+## The directories containing RNG files to be documented with rngdoc
+RNGDOC_DIRS ?=
+
+## @ XSLDOC_DIRS
+## The directories containing XSLT files to be documented with xsldoc
+XSLDOC_DIRS ?=
+
+
+################################################################################
+## Variables for Bootstrapping
+
+_xml2po ?= `which xml2po`
+
+_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
+_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
+_rngdoc ?= `$(PKG_CONFIG) --variable rngdoc gnome-doc-utils`
+_xsldoc ?= `$(PKG_CONFIG) --variable xsldoc gnome-doc-utils`
+_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
+_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
+_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
+
+_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
+
+
+################################################################################
+## @@ Rules for rngdoc
+
+rngdoc_args = \
+ --stringparam rngdoc.id \
+ $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
+ $(_rngdoc) $(filter %/$(basename $(notdir $(1))).rng,$(_RNGDOC_RNGS))
+
+## @ _RNGDOC_RNGS
+## The actual RNG files for which to generate documentation with rngdoc
+_RNGDOC_RNGS = $(foreach dir,$(RNGDOC_DIRS), \
+ $(wildcard $(dir)/*.rng))
+
+## @ _RNGDOC_C_DOCS
+## The generated rngdoc documentation in the C locale
+_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), \
+ C/$(basename $(notdir $(rng))).xml)
+
+# FIXME: Fix the dependancies
+$(_RNGDOC_C_DOCS) : $(_RNGDOC_RNGS)
+ xsltproc -o $@ $(call rngdoc_args,$@,$<)
+
+.PHONY: rngdoc
+rngdoc: $(_RNGDOC_C_DOCS)
+
+
+################################################################################
+## @@ Rules for xsldoc
+
+xsldoc_args = \
+ --stringparam xsldoc.id \
+ $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
+ $(_xsldoc) $(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS))
+
+## @ _XSLDOC_XSLS
+## The actual XSLT files for which to generate documentation with xsldoc
+_XSLDOC_XSLS = $(foreach dir,$(XSLDOC_DIRS), \
+ $(wildcard $(dir)/*.xsl))
+
+## @ _XSLDOC_C_DOCS
+## The generated xsldoc documentation in the C locale
+_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), \
+ C/$(basename $(notdir $(xsl))).xml)
+
+# FIXME: Fix the dependancies
+$(_XSLDOC_C_DOCS) : $(_XSLDOC_XSLS)
+ xsltproc $(call xsldoc_args,$@,$<) | xmllint --c14n - > $@
+
+.PHONY: xsldoc
+xsldoc: $(_XSLDOC_C_DOCS)
+
+
+################################################################################
+## @@ Rules for OMF Files
+
+db2omf_args = \
+ --stringparam db2omf.basename $(DOC_MODULE) \
+ --stringparam db2omf.format $(3) \
+ --stringparam db2omf.dtd \
+ $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
+ | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
+ --stringparam db2omf.lang $(patsubst %/$(notdir $(2)),%,$(2)) \
+ --stringparam db2omf.omf_dir "$(OMF_DIR)" \
+ --stringparam db2omf.help_dir "$(HELP_DIR)" \
+ --stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)" \
+ $(_db2omf) $(2)
+
+## @ _DOC_OMF_IN
+## The OMF input file
+_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
+
+## @ _DOC_OMF_DB
+## The OMF files for DocBook output
+_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
+ $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-$(lc).omf))
+
+$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
+$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
+ export PKG_CONFIG_PATH=/usr/share/pkgconfig:$PKG_CONFIG_PATH; \
+ xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
+
+## @ _DOC_OMF_HTML
+## The OMF files for HTML output
+_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
+ $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
+
+$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
+$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
+ xsltproc -o $@ $(call db2omf_args,$@,$<,'html')
+
+## @ _DOC_OMF_ALL
+## All OMF output files to be built
+# FIXME
+_DOC_OMF_ALL = \
+ $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
+ $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
+
+.PHONY: omf
+omf: $(_DOC_OMF_ALL)
+
+
+################################################################################
+## @@ Rules for Desktop Entry Files
+
+## @ _DOC_DSK_IN
+## The desktop entry input file
+_DOC_DSK_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).desktop.in))
+
+## @ _DOC_DSK_DB
+## The desktop entry files for DocBook output
+_DOC_DSK_DB = $(if $(_DOC_DSK_IN), \
+ $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).db.$(lc).desktop))
+
+# FIXME
+$(_DOC_DSK_DB) : $(_DOC_DSK_IN)
+$(_DOC_DSK_DB) : $(DOC_MODULE).db.%.desktop : %/$(DOC_MODULE).xml
+ cp $(_DOC_DSK_IN) $@
+
+## @ _DOC_DSK_HTML
+## The desktop entry files for HTML output
+_DOC_DSK_HTML = $(if $(_DOC_DSK_IN), \
+ $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).html.$(lc).desktop))
+
+$(_DOC_DSK_HTML) : $(_DOC_DSK_IN)
+$(_DOC_DSK_HTML) : $(DOC_MODULE).html.%.desktop : %/$(DOC_MODULE).xml
+ cp $(_DOC_DSK_IN) $@
+
+## @ _DOC_DSK_ALL
+## All desktop entry output files to be built
+# FIXME
+_DOC_DSK_ALL = \
+ $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_DB)) \
+ $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_HTML))
+
+.PHONY: dsk
+dsk: $(_DOC_DSK_ALL)
+
+
+################################################################################
+## @@ Rules for .cvsignore Files
+
+## @ _CVSIGNORE_TOP
+## The .cvsignore file in the top directory
+_CVSIGNORE_TOP = $(if $(DOC_MODULE), .cvsignore)
+
+## @ _CVSIGNORE_C
+## The .cvsignore file in the C directory
+_CVSIGNORE_C = $(if $(DOC_MODULE), C/.cvsignore)
+
+## @ _CVSIGNORE_LC
+## The .cvsignore files in other locale directories
+_CVSIGNORE_LC = $(if $(DOC_MODULE),$(foreach lc,$(DOC_LINGUAS),$(lc)/.cvsignore))
+
+## @ _CVSIGNORE_TOP_FILES
+## The list of files to be listed in the top-level .cvsignore file
+_CVSIGNORE_TOP_FILES = $(_DOC_OMF_ALL) $(_DOC_DSK_ALL)
+
+## @ _CVSIGNORE_C_FILES
+## The list of files to be listed in the .cvsignore file in the C directory
+_CVSIGNORE_C_FILES = $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
+
+## @ _CVSIGNORE_C_FILES
+## The list of files to be listed in the .cvsignore files in other
+## locale directories
+_CVSIGNORE_LC_FILES = $(_DOC_LC_DOCS)
+
+$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
+ if ! test -f $@; then touch $@; fi
+ cat $@ > $ tmp
+ for file in $^; do \
+ echo $$file >> $ tmp; \
+ done
+ cat $ tmp | sort | uniq > $@
+ rm $ tmp
+
+$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
+ if ! test -f $@; then touch $@; fi
+ cat $@ > $ tmp
+ for file in $^; do \
+ echo $$file | sed -e 's/.*\///' >> $ tmp; \
+ done
+ cat $ tmp | sort | uniq > $@
+ rm $ tmp
+
+$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
+ if ! test -f $@; then touch $@; fi
+ cat $@ > $ tmp
+ for file in $(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*); do \
+ echo $$file | sed -e 's/.*\///' >> $ tmp; \
+ done
+ cat $ tmp | sort | uniq > $@
+ rm $ tmp
+
+.PHONY: cvsignore
+cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
+
+
+################################################################################
+## @@ C Locale Documents
+
+## @ _DOC_C_MODULE
+## The top-level documentation file in the C locale
+_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
+
+## @ _DOC_C_ENTITIES
+## Files included with a SYSTEM entity in the C locale
+_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
+
+## @ _DOC_C_XINCLUDES
+## Files included with XInclude in the C locale
+_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
+
+## @ _DOC_C_DOCS
+## All documentation files in the C locale
+_DOC_C_DOCS = \
+ $(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
+ $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS) \
+ $(_DOC_C_MODULE)
+
+## @ _DOC_C_DOCS_NOENT
+## All documentation files in the C locale,
+## except files included with a SYSTEM entity
+_DOC_C_DOCS_NOENT = \
+ $(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
+ $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
+
+## @ _DOC_C_FIGURES
+## All figures and other external data in the C locale
+_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
+ $(foreach fig,$(DOC_FIGURES),C/$(fig)), \
+ $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
+
+## @ _DOC_C_HTML
+## All HTML documentation in the C locale
+# FIXME: probably have to shell escape to determine the file names
+_DOC_C_HTML = $(shell xsltproc --xinclude \
+ --stringparam db.chunk.basename "$(DOC_MODULE)" \
+ $(_chunks) "C/$(DOC_MODULE).xml")
+
+###############################################################################
+## @@ Other Locale Documentation
+
+## @ _DOC_POFILES
+## The .po files used for translating the document
+_DOC_POFILES = $(if $(DOC_MODULE), \
+ $(foreach lc,$(DOC_LINGUAS),$(lc)/$(lc).po))
+
+.PHONY: po
+po: $(_DOC_POFILES)
+
+## @ _DOC_LC_MODULES
+## The top-level documentation files in all other locales
+_DOC_LC_MODULES = $(if $(DOC_MODULE), \
+ $(foreach lc,$(DOC_LINGUAS),$(lc)/$(DOC_MODULE).xml))
+
+## @ _DOC_LC_XINCLUDES
+## Files included with XInclude in all other locales
+_DOC_LC_INCLUDES = \
+ $(foreach lc,$(DOC_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
+ $(lc)/$(notdir $(inc)) ))
+
+## @ _RNGDOC_LC_DOCS
+## The generated rngdoc documentation in all other locales
+_RNGDOC_LC_DOCS = \
+ $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS), \
+ $(lc)/$(notdir $(doc)) ))
+
+## @ _XSLDOC_LC_DOCS
+## The generated xsldoc documentation in all other locales
+_XSLDOC_LC_DOCS = \
+ $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS), \
+ $(lc)/$(notdir $(doc)) ))
+
+## @ _DOC_LC_HTML
+## All HTML documentation in all other locales
+# FIXME: probably have to shell escape to determine the file names
+_DOC_LC_HTML = \
+ $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
+ $(lc)/$(notdir $(doc)) ))
+
+## @ _DOC_LC_DOCS
+## All documentation files in all other locales
+_DOC_LC_DOCS = \
+ $(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
+ $(_RNGDOC_LC_DOCS) $(_XSLDOC_LC_DOCS) \
+ $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
+
+## @ _DOC_LC_FIGURES
+## All figures and other external data in all other locales
+_DOC_LC_FIGURES = $(foreach lc,$(DOC_LINGUAS), \
+ $(if $(DOC_FIGURES), \
+ $(foreach fig,$(DOC_FIGURES),$(lc)/$(fig)), \
+ $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/$(lc)/figures/*.png)) ))
+
+$(_DOC_POFILES): $(_DOC_C_DOCS)
+ if ! test -d $(dir $@); then mkdir $(dir $@); fi
+ if test -f "$(_DOC_C_MODULE)"; then d="../"; else d="../$(srcdir)/"; fi; \
+ if ! test -f $@; then \
+ (cd $(dir $@) && \
+ $(_xml2po) -e $(_DOC_C_DOCS_NOENT:%=$${d}%) > $(notdir $@)); \
+ else \
+ (cd $(dir $@) && \
+ $(_xml2po) -e -u $(basename $(notdir $@)) $(_DOC_C_DOCS_NOENT:%=$${d}%)); \
+ fi
+
+# FIXME: hook xml2po up
+$(_DOC_LC_DOCS) : $(_DOC_POFILES)
+$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
+ if test -f "$(_DOC_C_MODULE)"; then d="../C/"; else d="../$(srcdir)/C/"; fi; \
+ (cd $(dir $@) && \
+ $(_xml2po) -e -p $(patsubst %/$(notdir $@),%,$@).po $${d}$(notdir $@) > $(notdir $@))
+
+
+################################################################################
+## @@ All Documentation
+
+## @ _DOC_HTML_ALL
+## All HTML documentation, only if it's built
+_DOC_HTML_ALL = $(if $(findstring html,$(_DOC_REAL_FORMATS)), \
+ $(_DOC_C_HTML) $(_DOC_LC_HTML))
+
+_DOC_HTML_TOPS = $(foreach lc,C $(DOC_LINGUAS),$(lc)/$(DOC_MODULE).html)
+
+$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
+ xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".html" $(_db2html) $(patsubst %.html,%.xml,$@)
+
+
+################################################################################
+
+all: \
+ $(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
+ $(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
+ $(_DOC_HTML_ALL) $(_DOC_POFILES)
+
+
+.PHONY: clean-rngdoc clean-xsldoc clean-omf clean-dsk clean-lc
+
+clean-rngdoc: ; rm -f $(_RNGDOC_C_DOCS) $(_RNGDOC_LC_DOCS)
+clean-xsldoc: ; rm -f $(_XSLDOC_C_DOCS) $(_XSLDOC_LC_DOCS)
+clean-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
+clean-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
+clean-lc: ; rm -f $(_DOC_LC_DOCS)
+
+_clean_rngdoc = $(if $(RNGDOC_DIRS),clean-rngdoc)
+_clean_xsldoc = $(if $(XSLDOC_DIRS),clean-xsldoc)
+_clean_omf = $(if $(_DOC_OMF_IN),clean-omf)
+_clean_dsk = $(if $(_DOC_DSK_IN),clean-dsk)
+_clean_lc = $(if $(DOC_LINGUAS),clean-lc)
+
+clean: \
+ $(_clean_rngdoc) $(_clean_xsldoc) \
+ $(_clean_omf) $(_clean_dsk) \
+ $(_clean_lc)
+distclean: \
+ $(_clean_rngdoc) $(_clean_xsldoc) \
+ $(_clean_omf) $(_clean_dsk) \
+ $(_clean_lc)
+mostlyclean: \
+ $(_clean_rngdoc) $(_clean_xsldoc) \
+ $(_clean_omf) $(_clean_dsk) \
+ $(_clean_lc)
+maintainer-clean: \
+ $(_clean_rngdoc) $(_clean_xsldoc) \
+ $(_clean_omf) $(_clean_dsk) \
+ $(_clean_lc)
+
+
+.PHONY: dist-doc dist-fig dist-omf dist-dsk
+doc-dist-hook: \
+ $(if $(DOC_MODULE),dist-doc) \
+ $(if $(DOC_FIGURES),dist-fig) \
+ $(if $(_DOC_OMF_IN),dist-omf) \
+ $(if $(_DOC_DSK_IN),dist-dsk)
+
+dist-doc: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
+ @for lc in C $(DOC_LINGUAS); do \
+ echo " $(mkinstalldirs) $(distdir)/$$lc"; \
+ $(mkinstalldirs) "$(distdir)/$$lc"; \
+ done
+ @for doc in $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES); do \
+ if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
+ $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
+ done
+
+dist-fig: $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)
+ @for lc in C $(DOC_LINGUAS); do \
+ echo " $(mkinstalldirs) $(distdir)/$$lc/figures"; \
+ $(mkinstalldirs) "$(distdir)/$$lc/figures"; \
+ done;
+ @for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
+ if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$dd$$fig"; then \
+ echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
+ $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
+ fi; \
+ done;
+
+dist-omf:
+ @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
+ $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
+
+dist-dsk:
+ @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
+ $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
+
+
+.PHONY: check-doc check-omf
+check: \
+ $(if $(DOC_MODULE),check-doc) \
+ $(if $(_DOC_OMF_IN),check-omf)
+
+check-doc: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
+ @for lc in C $(DOC_LINGUAS); do \
+ if test -f "$$lc"; then d=; else d="$(srcdir)/"; fi; \
+ echo " (cd $$d$$lc && xmllint --noout --xinclude --postvalid $(DOC_MODULE).xml)"; \
+ (cd $$d$$lc && xmllint --noout --xinclude --postvalid $(DOC_MODULE).xml); \
+ done
+
+check-omf: $(_DOC_OMF_ALL)
+ @for omf in $(_DOC_OMF_ALL); do \
+ echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
+ xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
+ done
+
+
+.PHONY: install-doc install-html install-fig install-omf install-dsk
+#install-data-local: \
+# $(if $(DOC_MODULE),install-doc) \
+# $(if $(_DOC_HTML_ALL),install-html) \
+# $(if $(DOC_FIGURES),install-fig) \
+# $(if $(_DOC_OMF_IN),install-omf)
+# $(if $(_DOC_DSK_IN),install-dsk)
+
+install-doc:
+ @for lc in C $(DOC_LINGUAS); do \
+ echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
+ $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
+ done
+ @for doc in $(_DOC_C_DOCS) $(_DOC_LC_DOCS); do \
+ if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
+ $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
+ done
+
+install-fig:
+ @for lc in C $(DOC_LINGUAS); do \
+ echo " $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc/figures"; \
+ $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc/figures"; \
+ done;
+ @for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
+ if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$dd$$fig"; then \
+ echo "$(INSTALL_DATA) $$d$$fig $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
+ $(INSTALL_DATA) "$$d$$fig $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
+ fi; \
+ done;
+
+install-html:
+ echo install-html
+
+install-omf:
+ $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
+ @for omf in $(_DOC_OMF_ALL); do \
+ echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
+ $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
+ done
+ -scrollkeeper-update -p "$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"
+
+install-dsk:
+ echo install-dsk
+
+
+.PHONY: uninstall-doc uninstall-html uninstall-omf uninstall-dsk
+uninstall-local: \
+ $(if $(DOC_MODULE),uninstall-doc) \
+ $(if $(_DOC_HTML_ALL),uninstall-html) \
+ $(if $(DOC_FIGURES),uninstall-fig) \
+ $(if $(_DOC_OMF_IN),uninstall-omf)
+# $(if $(_DOC_DSK_IN),uninstall-dsk)
+
+uninstall-doc:
+ @for doc in $(_DOC_C_DOCS) $(_DOC_LC_DOCS); do \
+ echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
+ rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
+ done
+
+uninstall-fig:
+ @for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
+ echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
+ rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
+ done;
+
+uninstall-omf:
+ @for omf in $(_DOC_OMF_ALL); do \
+ echo " scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
+ scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
+ echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
+ rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
+ done
diff --git a/help/release-notes.omf.in b/help/release-notes.omf.in
new file mode 100644
index 0000000..ac0cd43
--- /dev/null
+++ b/help/release-notes.omf.in
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='utf-8'?>
+<omf>
+ <resource>
+ <creator>Davyd Madeley</creator>
+ <subject category="System|Other"/>
+ <type>article</type>
+ <relation seriesid="0edb6d67-540e-4ec4-854f-796f61cdd783"/>
+ <rights type="GNU FDL" license.version="1.1" holder="Davyd Madeley"/>
+ </resource>
+</omf>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]