[Xfce4-commits] <ristretto:master> Revert "Remove docs submodule"
Stephan Arts
noreply at xfce.org
Sat Jan 14 17:52:04 CET 2012
Updating branch refs/heads/master
to 2ab305e4c618dace30d27eaa0a66c090e1bd6ef3 (commit)
from 01e85682edf4ab91488baab57028deda1bb47a99 (commit)
commit 2ab305e4c618dace30d27eaa0a66c090e1bd6ef3
Author: Stephan Arts <stephan at xfce.org>
Date: Sat Jan 14 16:47:12 2012 +0100
Revert "Remove docs submodule"
This reverts commit 30031ef8f300ee2e6b8a1df2ab18fdcbe6328949.
.gitmodules | 3 +++
Makefile.am | 2 +-
configure.in.in | 40 ++++++++++++++++++++++++++++++++++++++++
docs | 1 +
4 files changed, 45 insertions(+), 1 deletions(-)
diff --git a/.gitmodules b/.gitmodules
index e69de29..10e4aa0 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "docs"]
+ path = docs
+ url = git://git.xfce.org/xfce/xfce4-docs
diff --git a/Makefile.am b/Makefile.am
index 7dada84..ba1a733 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = src po icons
+SUBDIRS = src po icons docs
desktopdir = $(datadir)/applications
desktop_in_files = ristretto.desktop.in
diff --git a/configure.in.in b/configure.in.in
index 6c5f873..e50d412 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -72,6 +72,42 @@ XDT_CHECK_LIBX11()
AC_CHECK_LIBM
AC_SUBST(LIBM)
+dnl *******************************
+dnl *** Check for documentation ***
+dnl *******************************
+AC_ARG_ENABLE([gen-doc], [AC_HELP_STRING([--enable-gen-doc],
+ [Generate HTML documentation (requires gnome-doc-utils) [default=no]])],,
+ [enable_gen_doc=no])
+if test x"$enable_gen_doc" = x"yes"; then
+ XDT_CHECK_PACKAGE([GNOME_DOC_UTILS], [gnome-doc-utils], [0.19.2],
+ [
+ AC_PATH_PROG([ITSTOOL], [itstool], [no])
+ if test x"$ITSTOOL" = x"no"; then
+ enable_gen_doc=no
+ fi
+
+ AC_PATH_PROG([GNOME_DOC_TOOL], [gnome-doc-tool], [no])
+ if test x"$GNOME_DOC_TOOL" = x"no"; then
+ enable_gen_doc=no
+ fi
+
+ AC_PATH_PROG([XML2PO], [xml2po], [no])
+ if test x"$XML2PO" = x"no"; then
+ enable_gen_doc=no
+ fi
+ ],
+ [
+ enable_gen_doc=no
+ ])
+
+ if test x"$enable_gen_doc" = x"no"; then
+ AC_MSG_ERROR([Compiling with --enable-gen-doc but no suitable gnome-doc-utils found.])
+ fi
+fi
+AM_CONDITIONAL([GENERATE_DOCUMENTATION], [test x"$enable_gen_doc" = x"yes"])
+
+
+
dnl check for debugging support
XDT_FEATURE_DEBUG
@@ -79,6 +115,10 @@ AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
+docs/Makefile
+docs/manual/Makefile
+docs/manual/po/Makefile
+docs/manual/media/Makefile
icons/Makefile
icons/16x16/Makefile
icons/22x22/Makefile
diff --git a/docs b/docs
new file mode 160000
index 0000000..73b0800
--- /dev/null
+++ b/docs
@@ -0,0 +1 @@
+Subproject commit 73b080051221a9e960796b0917768982fe85567f
More information about the Xfce4-commits
mailing list