[Groonga-commit] groonga/groonga [master] [doc] support groonga.github.com auto update.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 20日 (金) 16:20:33 JST


Kouhei Sutou	2011-05-20 07:20:33 +0000 (Fri, 20 May 2011)

  New Revision: 74ee1b0c68c6da348c5ee9fcaa709d1f597a8560

  Log:
    [doc] support groonga.github.com auto update.

  Modified files:
    Makefile.am
    configure.ac

  Modified: Makefile.am (+13 -0)
===================================================================
--- Makefile.am    2011-05-20 07:17:07 +0000 (d7099f6)
+++ Makefile.am    2011-05-20 07:20:33 +0000 (07bc119)
@@ -75,3 +75,16 @@ update-latest-release:
 	  rpm/fedora/groonga.spec.in				\
 	  rpm/centos/groonga.spec.in				\
 	  debian/changelog
+
+update-document:
+	@if test -z "$(GROONGA_GITHUB_COM_PATH)"; then			\
+	  echo "\$$(GROONGA_GITHUB_COM_PATH) is missing";		\
+	  echo "add --with-groonga-github-com-path in configure";	\
+	  exit 1;							\
+	fi
+	rm -rf tmp-doc
+	mkdir tmp-doc
+	(cd doc && $(MAKE) install docdir=$(abs_srcdir)/tmp-doc/install)
+	ruby $(srcdir)/tools/prepare-sphinx-html.rb tmp-doc/install tmp-doc/dist
+	rm -rf $(GROONGA_GITHUB_COM_PATH)/docs
+	mv tmp-doc/dist $(GROONGA_GITHUB_COM_PATH)/docs

  Modified: configure.ac (+8 -0)
===================================================================
--- configure.ac    2011-05-20 07:17:07 +0000 (1e77b13)
+++ configure.ac    2011-05-20 07:20:33 +0000 (aa8bfe1)
@@ -798,6 +798,14 @@ CFLAGS="$CFLAGS $OPT_CFLAGS "
 LIBS="$LIBS $ZLIB_LIBS $LZO_LIBS $RT_LIBS $PTHREAD_LIBS $M_LIBS $NSL_LIBS $SOCKET_LIBS $WINDOWS_LIBS"
 AC_DEFINE_UNQUOTED(CONFIGURE_OPTIONS, "$ac_configure_args", "specified configure options")
 
+# For groonga.org
+AC_ARG_WITH(groonga-github-com-path,
+            [AS_HELP_STRING([--with-groonga-github-com-path=PATH],
+            [specify groonga.github.com path to update groonga.org.])],
+            [GROONGA_GITHUB_COM_PATH="$withval"],
+            [GROONGA_GITHUB_COM_PATH=""])
+AC_SUBST(GROONGA_GITHUB_COM_PATH)
+
 # For Debian package release
 AC_ARG_WITH(rsync-path,
             [AS_HELP_STRING([--with-rsync-path=PATH],




Groonga-commit メーリングリストの案内
Back to archive index