docs: add the documentation URL and a makefile recipe for documentation updates
authorAlexander Kanavin <alexander.kanavin@intel.com>
Fri, 23 Aug 2013 14:45:21 +0000 (17:45 +0300)
committerAlexander Kanavin <alexander.kanavin@intel.com>
Fri, 23 Aug 2013 14:48:49 +0000 (17:48 +0300)
Makefile.am
docs/reference/libgsignon-glib-docs.xml

index b31445a211fbc49b5144601cb9e75d3acff837ca..5fdae8f60753839caa00e26ec138bf058522ff54 100644 (file)
@@ -21,6 +21,9 @@ dist_noinst_DATA = \
        m4/introspection.m4
 
 dist-hook: git-changelog-hook
+       @echo
+       @echo "==== Run 'make update-online-doc' to update online documentation ===="
+       @echo
 
 git-changelog-hook: Makefile
        $(AM_V_at)if $(top_srcdir)/build-aux/missing --run git \
@@ -39,3 +42,22 @@ valgrind:
 EXTRA_DIST = dists tools
 
 .PHONY:  git-changelog-hook
+
+update-online-doc:
+       @tar zxf $(PACKAGE)-$(VERSION).tar.gz && \
+       pushd . > /dev/null && \
+       cd .. && \
+       git clone https://code.google.com/p/accounts-sso.gsignon-docs/ ; \
+       cd accounts-sso.gsignon-docs && \
+       git pull ; \
+       mkdir -p $(PACKAGE) && \
+       rm -rf $(PACKAGE)/* && \
+       popd > /dev/null && \
+       cp -rf $(PACKAGE)-$(VERSION)/docs/reference/html/* ../accounts-sso.gsignon-docs/$(PACKAGE)/ && \
+       pushd . > /dev/null && \
+       cd ../accounts-sso.gsignon-docs && \
+       git add $(PACKAGE)/* && \
+       git commit -m "Updated documentation for $(PACKAGE) to version $(VERSION)" && \
+       git push ; \
+       popd > /dev/null && \
+       rm -rf $(PACKAGE)-$(VERSION)
\ No newline at end of file
index cb83094ec1896904df180a60f5d0bcf518b036cd..1685173728f061fe6963e40803d47d31834941d5 100644 (file)
@@ -9,8 +9,9 @@
     <title>libgsignon-glib Reference Manual</title>
     <releaseinfo>
       This document is for libgsignon-glib, version &version;. The latest
-      version of this documentation can be built from the source code at
-      <ulink role="online-location" url="https://code.google.com/p/accounts-sso/source/checkout?repo=libgsignon-glib">https://code.google.com/p/accounts-sso/source/checkout?repo=libgsignon-glib</ulink>.
+      version of this documentation can be found on-line at
+      <ulink role="online-location" url="http://gsignon-docs.accounts-sso.googlecode.com/git/libgsignon-glib/index.html">
+      http://gsignon-docs.accounts-sso.googlecode.com/git/libgsignon-glib/index.html</ulink>.
     </releaseinfo>
   </bookinfo>