[Pkg-haskell-commits] darcs: gitit: Manual page for expireGititCache.

Giovanni Mascellani gio at debian.org
Mon Jul 25 19:11:59 UTC 2011


Mon Jul 25 19:11:05 UTC 2011  Giovanni Mascellani <gio at debian.org>
  * Manual page for expireGititCache.
  Ignore-this: fed478f829b87743003efa2d40ab4715

    A ./expireGititCache.xml
    M ./rules -4 +5

Mon Jul 25 19:11:05 UTC 2011  Giovanni Mascellani <gio at debian.org>
  * Manual page for expireGititCache.
  Ignore-this: fed478f829b87743003efa2d40ab4715
diff -rN -u old-gitit//expireGititCache.xml new-gitit//expireGititCache.xml
--- old-gitit//expireGititCache.xml	1970-01-01 00:00:00.000000000 +0000
+++ new-gitit//expireGititCache.xml	2011-07-25 19:11:58.910056893 +0000
@@ -0,0 +1,87 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+  <!ENTITY dhfirstname "Giovanni">
+  <!ENTITY dhsurname   "Mascellani">
+  <!ENTITY dhusername  "Giovanni Mascellani">
+  <!ENTITY dhemail     "gio at debian.org">
+  <!ENTITY dhsection   "1">
+  <!ENTITY dhtitle     "Gitit User Manual">
+  <!ENTITY dhucpackage "expireGititCache">
+  <!ENTITY dhpackage   "expireGititCache">
+]>
+
+<refentry>
+  <refentryinfo>
+    <title>&dhtitle;</title>
+    <productname>&dhpackage;</productname>
+    <authorgroup>
+      <author>
+       <firstname>&dhfirstname;</firstname>
+        <surname>&dhsurname;</surname>
+        <contrib>Wrote this manpage for the Debian system.</contrib>
+        <address>
+          <email>&dhemail;</email>
+        </address>
+      </author>
+    </authorgroup>
+    <copyright>
+      <year>2011</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    <legalnotice>
+      <para>This manual page was written for the Debian system
+        (and may be used by others).</para>
+      <para>Permission is granted to copy, distribute and/or modify this
+        document under the terms of the GNU General Public License,
+        Version 3 or (at your option) any later version published by
+        the Free Software Foundation.</para>
+      <para>On Debian systems, the complete text of the GNU General Public
+        License can be found in
+        <filename>/usr/share/common-licenses/GPL</filename>.</para>
+    </legalnotice>
+  </refentryinfo>
+  <refmeta>
+    <refentrytitle>&dhucpackage;</refentrytitle>
+    <manvolnum>&dhsection;</manvolnum>
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+    <refpurpose>requests cache expiration for gitit pages</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg choice="plain"><replaceable>gititUrl</replaceable></arg>
+      <arg choice="plain"><replaceable>page1</replaceable></arg>
+      <arg choice="opt"><replaceable>page2</replaceable> <replaceable>...</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1 id="description">
+    <title>DESCRIPTION</title>
+    <para><command>&dhpackage;</command> requests to a <command>gitit</command>-powered
+    wiki to expire the cache for specified pages. For example, is <replaceable>gititUrl</replaceable>
+    is set to "http://localhost:5001" and <replaceable>page1</replaceable> is
+    "Main page.page", then <command>&dhpackage;</command> execute a POST request
+    to the URL "http://localhost:5001/_expire/Front page".</para>
+  </refsect1>
+
+  <refsect1 id="returns">
+    <title>RETURNS</title>
+    <para><command>&dhpackage;</command>'s return status is:
+    <itemizedlist>
+    <listitem><simpara><command>0</command> if the pages' caches were successfully expired
+      or if pages weren't cached in the first place);</simpara></listitem>
+    <listitem><simpara><command>1</command> if fewer than two arguments were
+      supplied;</simpara></listitem>
+    <listitem><simpara><command>3</command> if the wiki engine responded with something
+      different from 200 OK to the request;</simpara></listitem>
+    <listitem><simpara><command>5</command> if <replaceable>gititUrl</replaceable> could
+      not be parsed.</simpara></listitem>
+    </itemizedlist>
+    </para>
+  </refsect1>
+
+</refentry>
+
diff -rN -u old-gitit//rules new-gitit//rules
--- old-gitit//rules	2011-07-25 19:11:58.898366540 +0000
+++ new-gitit//rules	2011-07-25 19:11:58.910056893 +0000
@@ -6,15 +6,16 @@
 PANDOC_DEP := $(shell dpkg -p pandoc | grep ^Version: | cut -d' ' -f2)
 FILESTORE_DEP := $(shell dpkg -p libghc-filestore-data | grep ^Version: | cut -d' ' -f2)
 
-DEB_INSTALL_MANPAGES_gitit := gitit.1
+MANPAGES := gitit.1 expireGititCache.1
+DEB_INSTALL_MANPAGES_gitit := $(MANPAGES)
 
 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
 XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
 
-gitit.1: debian/gitit.xml
+%.1: debian/%.xml
 	$(XP) $(DB2MAN) $<
 
-build/gitit:: gitit.1
+build/gitit:: $(MANPAGES)
 
 install/gitit:: debian/tmp-inst-ghc
 	cp -av debian/tmp-inst-ghc/usr/bin/* debian/gitit/usr/bin
@@ -40,5 +41,5 @@
 #	echo "gitit:Depends=pandoc (= ${PANDOC_DEP}), libghc-filestore-data (= ${FILESTORE_DEP})" >> debian/gitit.substvars
 
 clean::
-	rm -f gitit.1
+	rm -f $(MANPAGES)
 





More information about the Pkg-haskell-commits mailing list