SF.net SVN: gar:[23405] csw/mgar/pkg/opencsw-manual/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 13 10:20:47 CEST 2014


Revision: 23405
          http://sourceforge.net/p/gar/code/23405
Author:   wahwah
Date:     2014-04-13 08:20:45 +0000 (Sun, 13 Apr 2014)
Log Message:
-----------
/home/maciej/opencsw/opencsw-manual/trunk: Add a check for documentation version

Modified Paths:
--------------
    csw/mgar/pkg/opencsw-manual/trunk/Makefile
    csw/mgar/pkg/opencsw-manual/trunk/files/conf.py
    csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/faq.rst
    csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/installation-en-masse.rst

Added Paths:
-----------
    csw/mgar/pkg/opencsw-manual/trunk/files/check.sh

Modified: csw/mgar/pkg/opencsw-manual/trunk/Makefile
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/Makefile	2014-04-13 00:31:29 UTC (rev 23404)
+++ csw/mgar/pkg/opencsw-manual/trunk/Makefile	2014-04-13 08:20:45 UTC (rev 23405)
@@ -16,8 +16,9 @@
 DESCRIPTION = OpenCSW manual
 
 VENDOR_URL = http://www.opencsw.org
-MASTER_SITES = http://www.gnu.org/licenses/
+MASTER_SITES =
 DISTFILES  = fdl-1.3.txt
+DISTFILES += check.sh
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS = manual
 INSTALL_SCRIPTS = manual
@@ -50,6 +51,7 @@
 	@$(MAKECOOKIE)
 
 post-install: copy-to-web
+	$(WORKSRC)/check.sh $(WORKSRC)/conf.py
 	@$(MAKECOOKIE)
 
 # define HTDOCS such as to be possible to install anywhere:

Added: csw/mgar/pkg/opencsw-manual/trunk/files/check.sh
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/files/check.sh	                        (rev 0)
+++ csw/mgar/pkg/opencsw-manual/trunk/files/check.sh	2014-04-13 08:20:45 UTC (rev 23405)
@@ -0,0 +1,20 @@
+#!/opt/csw/bin/bash
+
+PATH=/opt/csw/gnu:/opt/csw/bin:/usr/bin
+
+CONF=$1
+
+DATESTAMP_CONF=$(grep ^version "${CONF}" | cut -d= -f2 \
+  | sed -e 's+[^0-9]*\([0-9\.]*\)[^0-9]*+\1+')
+DATESTAMP_CLOCK=$(date '+0.%Y.%m')
+
+if [[ "${DATESTAMP_CONF}" != "${DATESTAMP_CLOCK}" ]]; then
+  echo >&2
+  echo >&2 '*****'
+  echo >&2 "Please update the version setting in conf.py to ${DATESTAMP_CLOCK}"
+  echo >&2 '*****'
+  echo >&2
+  exit 1
+fi
+
+exit 0


Property changes on: csw/mgar/pkg/opencsw-manual/trunk/files/check.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Modified: csw/mgar/pkg/opencsw-manual/trunk/files/conf.py
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/files/conf.py	2014-04-13 00:31:29 UTC (rev 23404)
+++ csw/mgar/pkg/opencsw-manual/trunk/files/conf.py	2014-04-13 08:20:45 UTC (rev 23405)
@@ -48,9 +48,9 @@
 # built documents.
 #
 # The short X.Y version.
-version = '0.1'
+version = '0.2014.04'
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = '0.2014.04'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

Modified: csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/faq.rst
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/faq.rst	2014-04-13 00:31:29 UTC (rev 23404)
+++ csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/faq.rst	2014-04-13 08:20:45 UTC (rev 23405)
@@ -29,10 +29,8 @@
 How can I transfer packages to a computer without an Internet connection?
 =========================================================================
 
-Have a look at pkgutil's ``--download``, ``--stream``, and ``--target``
-options. You can download packages for a specific platform with all
-dependencies into one big file in order to transfer and install them on another
-computer.
+Please see :ref:`installing on a host without an Internet connection
+<installing-on-a-host-without-an-internet-connection>`.
 
 Why do packages go by two names (e.g. CSWftype2 and freetype2)?
 ===============================================================

Modified: csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/installation-en-masse.rst
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/installation-en-masse.rst	2014-04-13 00:31:29 UTC (rev 23404)
+++ csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/installation-en-masse.rst	2014-04-13 08:20:45 UTC (rev 23405)
@@ -2,6 +2,8 @@
 Installing packages en masse
 ============================
 
+.. _installing-on-a-host-without-an-internet-connection:
+
 ---------------------------------------------------
 Installing on a host without an Internet connection
 ---------------------------------------------------

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list