[gnomemm-website] Rearranged the directory structure to be more like a normal translated module.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomemm-website] Rearranged the directory structure to be more like a normal translated module.
- Date: Wed, 24 Nov 2010 11:09:31 +0000 (UTC)
commit 78e835dc39af8f8bf73d650da4580543b1c1c078
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Nov 24 10:07:40 2010 +0100
Rearranged the directory structure to be more like a normal translated module.
* Moved gnomemm-website.xml to docs/C/.
* Moved lang/whatever.po to docs/whatever/.
* Added autogen.sh, Makefile.am and docs/Makefile.am, based on the ones
from gtkmm-documentation with some things removed.
AUTHORS | 1 +
ChangeLog | 9 ++
Makefile | 49 -----------
Makefile.am | 6 ++
autogen.sh | 9 ++
configure.ac | 25 ++++++
gnomemm-website.xml => docs/C/gnomemm-website.xml | 0
docs/Makefile.am | 92 +++++++++++++++++++++
{html/style => docs}/style.css | 0
{lang => docs/zh_CN}/zh_CN.po | 0
10 files changed, 142 insertions(+), 49 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..69ac3e0
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+See the Changelog and MAINTAINERS.
diff --git a/ChangeLog b/ChangeLog
index b88efce..37951e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-11-24 Murray Cumming <murrayc murrayc com>
+
+ Rearranged the directory structure to be more like a normal translated module.
+
+ * Moved gnomemm-website.xml to docs/C/.
+ * Moved lang/whatever.po to docs/whatever/.
+ * Added autogen.sh, Makefile.am and docs/Makefile.am, based on the ones
+ from gtkmm-documentation with some things removed.
+
2010-11-18 Murray Cumming <murrayc murrayc com>
Bugs: Update the easy-fix link to use the gnome-love keyword.
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..9b82b26
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
+ACLOCAL_AMFLAGS = -I build ${ACLOCAL_FLAGS}
+DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal
+
+SUBDIRS = docs
+
+dist_noinst_SCRIPTS = autogen.sh
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..988f2e2
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,9 @@
+#! /bin/sh -e
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+(
+ cd "$srcdir" &&
+ gnome-doc-prepare --automake --copy --force &&
+ autoreconf --force --install --verbose
+) || exit
+test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@"
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..4d12ad0
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,25 @@
+AC_PREREQ([2.59])
+AC_INIT([gnomemm-website], [2.91.4],
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=gtkmm],
+ [gnomemm-website], [http://www.gtkmm.org/])
+
+AC_CONFIG_SRCDIR([docs/C/gnomemm-website.xml])
+AC_CONFIG_AUX_DIR([build])
+AC_CONFIG_MACRO_DIR([build])
+
+AM_INIT_AUTOMAKE([1.9 -Wno-portability dist-bzip2 no-define nostdinc tar-pax])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
+AM_MAINTAINER_MODE
+AC_ARG_VAR([ACLOCAL_FLAGS], [aclocal flags, e.g. -I <macro dir>])
+
+AC_PROG_CXX
+AC_PATH_PROG([PERL], [perl], [perl])
+
+AC_LANG([C++])
+
+GNOME_DOC_INIT([0.9.0],,
+ [AC_MSG_WARN([[gnome-doc-utils not found: tutorial will not be built.]])])
+
+AC_CONFIG_FILES([Makefile
+ docs/Makefile])
+AC_OUTPUT
diff --git a/gnomemm-website.xml b/docs/C/gnomemm-website.xml
similarity index 100%
rename from gnomemm-website.xml
rename to docs/C/gnomemm-website.xml
diff --git a/docs/Makefile.am b/docs/Makefile.am
new file mode 100644
index 0000000..d757ad4
--- /dev/null
+++ b/docs/Makefile.am
@@ -0,0 +1,92 @@
+## This file is part of gtkmm-documentation.
+
+gtkmm_docdir = $(datadir)/doc/gtkmm-2.4
+
+# Function: $(call vpath_listall,PATTERN ...)
+# Get all filenames which match a PATTERN from the list. Look for files
+# relative to either the current directory or $(srcdir). Strip $(srcdir)/
+# again before returning and remove any duplicates.
+vpath_srclist = $(patsubst $(srcdir)/%,%,$(wildcard $(addprefix $(srcdir)/,$(1))))
+vpath_listall = $(sort $(wildcard $(1)) $(if $(srcdir:.=),$(vpath_srclist)))
+
+DOCBOOK_STYLESHEET_HTML ?= http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
+XMLLINT = xmllint
+XSLTPROC = xsltproc
+
+DOC_MODULE = gnomemm-website
+DOC_ENTITIES =
+DOC_INCLUDES =
+DOC_FIGURES =
+
+DOC_LINGUAS = zh_CN
+
+MAINTAINERCLEANFILES = html/*.html $(srcdir)/html/*.html
+
+# Set the use.id.as.filename param so that we don't use the chapter / section
+# number as the filename, otherwise the url will change every time anything is
+# re-ordered or inserted in the documentation
+xslt_params = $(strip \
+ --param toc.section.depth 1 \
+ --stringparam html.stylesheet 'style.css' \
+ --stringparam admon.graphics '1' \
+ --stringparam admon.graphics.path 'icons/' \
+ --stringparam admon.graphics.extension '.png' \
+ --stringparam chunker.output.indent 'yes' \
+ --stringparam chunker.output.encoding 'UTF-8' \
+ --stringparam navig.graphics 'yes' \
+ --stringparam navig.graphics.extension '.png' \
+ --stringparam navig.graphics.path 'icons/' \
+ --stringparam toc.list.type 'ul' \
+ --stringparam use.id.as.filename '1' \
+ )
+
+tutorialdir = $(gtkmm_docdir)/tutorial
+tutorial_htmldir = $(tutorialdir)/html
+tutorial_figuresdir = $(tutorial_htmldir)/figures
+tutorial_iconsdir = $(tutorial_htmldir)/icons
+
+tutorial_html_files = $(call vpath_listall,html/*.html) style.css
+tutorial_html_inst = $(foreach\
+ file,$(tutorial_html_files),$(or $(wildcard $(file)),$(srcdir)/$(file)))
+
+tutorial_xml_files = $(addsuffix /gnomemm-website.xml,C $(DOC_LINGUAS))
+tutorial_po_files = $(foreach lang,$(lang)/$(lang).po,$(DOC_LINGUAS))
+
+dist_noinst_DATA = \
+ C/gnomemm-website.xml \
+ $(tutorial_po_files) \
+ $(tutorial_xml_files) \
+ $(tutorial_html_files)
+
+dist_tutorial_figures_DATA = $(addprefix C/,$(DOC_FIGURES))
+
+dist_tutorial_icons_DATA =
+
+include $(top_srcdir)/build/gnome-doc-utils.make
+
+all-local: $(DOC_LINGUAS) $(addsuffix /gnomemm-website.xml,C $(DOC_LINGUAS)) html/index.html
+
+$(DOC_LINGUAS):
+ @$(MKDIR_P) $@
+
+# Create a html generation of the C locale's version of the DocBook,
+# using our custom stylesheet and graphics:
+html/index.html: $(srcdir)/C/gnomemm-website.xml
+ $(AM_V_at)rm -fr html
+ $(AM_V_at)$(MKDIR_P) html
+ $(AM_V_GEN)$(XSLTPROC) $(xslt_params) -o html/ --xinclude --catalogs \
+ '$(DOCBOOK_STYLESHEET_HTML)' $<
+
+# Make sure that the documentation will always have been generated before
+# executing the commands of a rule that depends on files in html/.
+html/chapter-%.html html/sec-%.html: | html/index.html
+
+validate: $(srcdir)/C/gnomemm-website.xml
+ $(XMLLINT) --xinclude --postvalid --noout $<
+
+
+.PHONY: install-tutorial uninstall-tutorial
+
+# Instruct GNU make to delete the targets of a rule after it failed, in
+# order to avoid the complication of handling that situation manually.
+.DELETE_ON_ERROR:
diff --git a/html/style/style.css b/docs/style.css
similarity index 100%
rename from html/style/style.css
rename to docs/style.css
diff --git a/lang/zh_CN.po b/docs/zh_CN/zh_CN.po
similarity index 100%
rename from lang/zh_CN.po
rename to docs/zh_CN/zh_CN.po
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]