diff -up glade-3.15.0/configure.ac.man-pages glade-3.15.0/configure.ac
--- glade-3.15.0/configure.ac.man-pages 2013-03-06 15:58:47.000000000 -0500
+++ glade-3.15.0/configure.ac 2013-06-26 15:02:30.060301314 -0400
@@ -195,6 +195,22 @@ AM_CONDITIONAL(BUILD_PYTHON, test x"$hav
YELP_HELP_INIT
+# ==================================================================
+# Man pages (requires xsltproc)
+# ==================================================================
+
+AC_ARG_ENABLE(man-pages,
+ AC_HELP_STRING([--enable-man-pages],
+ [build manual pages]),,
+ enable_man_pages=yes)
+if test x$enable_man_pages = xyes; then
+ AC_PATH_PROG([XSLTPROC], [xsltproc])
+ if test x$XSLTPROC = x; then
+ AC_MSG_ERROR([xsltproc is required to build manual pages])
+ fi
+fi
+AM_CONDITIONAL(BUILD_MAN_PAGES, test x$enable_man_pages = xyes)
+
dnl ================================================================
dnl Check for windows
dnl ================================================================
@@ -298,6 +314,7 @@ po/Makefile.in
doc/Makefile
doc/version.xml
help/Makefile
+man/Makefile
build/mingw-w64/glade.nsi
])
@@ -314,4 +331,5 @@ Configuration:
Introspection Data: ${found_introspection}
Build Reference Manual: ${enable_gtk_doc}
+ Build Manual Pages: ${enable_man_pages}
"
diff -up glade-3.15.0/Makefile.am.man-pages glade-3.15.0/Makefile.am
--- glade-3.15.0/Makefile.am.man-pages 2013-06-26 15:04:34.414063451 -0400
+++ glade-3.15.0/Makefile.am 2013-06-26 15:05:09.949281239 -0400
@@ -1,6 +1,10 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = po data gladeui src plugins doc help
+if BUILD_MAN_PAGES
+SUBDIRS += man
+endif
+DIST_SUBDIRS = po data gladeui src plugins doc help man
EXTRA_DIST = \
autogen.sh \
diff -up glade-3.15.0/man/glade-previewer.xml.man-pages glade-3.15.0/man/glade-previewer.xml
--- glade-3.15.0/man/glade-previewer.xml.man-pages 2013-06-26 15:02:30.061301320 -0400
+++ glade-3.15.0/man/glade-previewer.xml 2013-06-26 15:02:30.060301314 -0400
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+ glade-previewer
+ GNOME
+
+
+
+ Maintainer
+ Tristan Van Berkom
+ Van Berkom
+ tristan.van.berkom@gmail.com
+
+
+ Maintainer
+ Juan Pablo
+ Ugarte
+ juanpablougarte@gmail.com
+
+
+
+
+
+
+ glade-previewer
+ 1
+ User Commands
+
+
+
+ glade-previewer
+ Preview glade user interface definitions
+
+
+
+
+ glade-previewer OPTION
+
+
+
+
+ Description
+
+ glade-previewer is a tool that
+ can load and display a User Interface that has been defined
+ with glade. glade itself uses glade-previewer, but it
+ can also be used as a standalone utility.
+
+
+
+ Options
+
+ The following options can be specified:
+
+
+
+ ,
+
+ Name of the file to preview.
+
+
+
+
+ ,
+
+ Name of the toplevel to preview.
+
+
+
+ ,
+
+ Listen on standard input.
+
+
+
+ ,
+
+ Output version information and exit.
+
+
+
+
+
+ X display to use.
+
+
+
+
+ One of the or
+ options has to be specified.
+
+
+
+
+ See Also
+
+ glade1
+
+
+
+
diff -up glade-3.15.0/man/glade.xml.man-pages glade-3.15.0/man/glade.xml
--- glade-3.15.0/man/glade.xml.man-pages 2013-06-26 15:02:30.061301320 -0400
+++ glade-3.15.0/man/glade.xml 2013-06-26 15:02:30.061301320 -0400
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+ glade
+ GNOME
+
+
+
+ Maintainer
+ Tristan Van Berkom
+ Van Berkom
+ tristan.van.berkom@gmail.com
+
+
+ Maintainer
+ Juan Pablo
+ Ugarte
+ juanpablougarte@gmail.com
+
+
+
+
+
+
+ glade
+ 1
+ User Commands
+
+
+
+ glade
+ Create GTK+ user interfaces
+
+
+
+
+ glade OPTION FILE
+
+
+
+
+ Description
+
+ glade is a tool to create or edit
+ user interfaces for GTK+ or GNOME applications. It saves
+ the user interface descriptions in xml files which can be
+ read by the GtkBuilder API that is part of GTK+.
+
+
+
+ Options
+
+ The following options can be specified:
+
+
+
+ ,
+
+ Show help options.
+
+
+
+
+
+ Show all help options.
+
+
+
+
+
+ Show Glade debug options.
+
+
+
+
+
+ Show GTK+ options.
+
+
+
+
+
+ Output version information
+ and exit.
+
+
+
+
+
+ Disable devhelp integration.
+
+
+
+
+
+ X display to use.
+
+
+
+
+
+
+
+ See Also
+
+ devhelp1
+
+
+
+
diff -up glade-3.15.0/man/Makefile.am.man-pages glade-3.15.0/man/Makefile.am
--- glade-3.15.0/man/Makefile.am.man-pages 2013-06-26 15:02:30.061301320 -0400
+++ glade-3.15.0/man/Makefile.am 2013-06-26 15:02:30.061301320 -0400
@@ -0,0 +1,22 @@
+XSLTPROC_FLAGS = \
+ --nonet \
+ --stringparam man.output.quietly 1 \
+ --stringparam funcsynopsis.style ansi \
+ --stringparam man.th.extra1.suppress 1 \
+ --stringparam man.authors.section.enabled 0 \
+ --stringparam man.copyright.section.enabled 0
+
+.xml.1:
+ $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+
+man_MANS = \
+ glade.1 \
+ glade-previewer.1
+
+xml_files = $(man_MANS:.1=.xml)
+
+EXTRA_DIST = $(xml_files)
+
+DISTCLEANFILES = $(man_MANS)
+
+-include $(top_srcdir)/git.mk