[csw-devel] SF.net SVN: gar:[18524] csw/mgar/pkg/cswclassutils/trunk

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Mon Jun 25 15:09:29 CEST 2012


Revision: 18524
          http://gar.svn.sourceforge.net/gar/?rev=18524&view=rev
Author:   pfelecan
Date:     2012-06-25 13:09:29 +0000 (Mon, 25 Jun 2012)
Log Message:
-----------
new class action for TeX index update when installing TeX packages.

Modified Paths:
--------------
    csw/mgar/pkg/cswclassutils/trunk/Makefile
    csw/mgar/pkg/cswclassutils/trunk/README.maintainers
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.README.CSW

Added Paths:
-----------
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswtexhash

Modified: csw/mgar/pkg/cswclassutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/Makefile	2012-06-25 12:29:45 UTC (rev 18523)
+++ csw/mgar/pkg/cswclassutils/trunk/Makefile	2012-06-25 13:09:29 UTC (rev 18524)
@@ -1,7 +1,7 @@
 # $HeadURL$
 
 NAME = cswclassutils
-VERSION = 1.47
+VERSION = 1.48
 CATEGORIES = utils
 GARTYPE = v2
 

Modified: csw/mgar/pkg/cswclassutils/trunk/README.maintainers
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/README.maintainers	2012-06-25 12:29:45 UTC (rev 18523)
+++ csw/mgar/pkg/cswclassutils/trunk/README.maintainers	2012-06-25 13:09:29 UTC (rev 18524)
@@ -11,8 +11,9 @@
 
 1. Update the script(s) appropriately.
 2. Bump the version number in Makefile
-3. Commit changes to svn.
-4. gmake package-CSWcas-$name (eg: package-CSWcas-initsmf)
+3. Update files/CSWcswclassutils.README.CSW to document the new CAS
+4. Commit changes to svn.
+5. gmake package-CSWcas-$name (eg: package-CSWcas-initsmf)
 
 All of the GAR stuff is dynamically generated.  You can override these
 values if desired, but in most cases this won't be required.

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.README.CSW
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.README.CSW	2012-06-25 12:29:45 UTC (rev 18523)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.README.CSW	2012-06-25 13:09:29 UTC (rev 18524)
@@ -66,6 +66,12 @@
   package removal. If the entries have been changed manually they will
   not be preserved.
 
+- cswtexhash
+
+  This class takes care of keeping the Tex packages index in sync with
+  all TeX packages installed. It adds index entries on package
+  installation and removes them on package removal.
+
 Read more on the wiki: http://wiki.opencsw.org/cswclassutils-package.
 
 -- 

Added: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash	                        (rev 0)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash	2012-06-25 13:09:29 UTC (rev 18524)
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# i.cswtexhash - Class action script
+# 		 for registration of TeX packages
+#
+# Written and maintained by Peter Felecan
+#
+# 2012-06-25 Initial release
+
+echo "Installing class <cswtexhash> ..."
+
+while read src dest; do
+
+  /usr/bin/cp $src $dest || exit 2
+done
+
+if [ -x ${PKG_INSTALL_ROOT}/opt/csw/bin/mktexlsr ]; then
+	echo "Registering TeX entries. This may take some time..."
+	bash ${PKG_INSTALL_ROOT}/opt/csw/bin/mktexlsr ||
+	echo "Registering Tex entries failed! You need to run mktexlsr again"
+else
+    echo "$dest (TeX will be registered when CSWtetex is installed)"
+fi
+
+exit 0


Property changes on: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash
___________________________________________________________________
Added: svn:keywords
   + Author Date HeadURL Id Revision

Added: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswtexhash
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswtexhash	                        (rev 0)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswtexhash	2012-06-25 13:09:29 UTC (rev 18524)
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# r.cswtexhash - Class action script
+#                for registration of TeX packages
+#
+# Written and maintained by Peter Felecan
+#
+# 2012-06-25 Initial release
+
+echo "Removing class <cswtexhash> ..."
+
+while read dest; do
+
+  echo $dest
+  rm -f $dest
+
+done
+
+if [ -x ${PKG_INSTALL_ROOT}/opt/csw/bin/mktexlsr ]; then
+	echo "Unregistering TeX entries. This may take some time..."
+	bash ${PKG_INSTALL_ROOT}/opt/csw/bin/mktexlsr ||
+	echo "Unregistering Tex entries failed! You need to run mktexlsr again"
+fi
+
+exit 0


Property changes on: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswtexhash
___________________________________________________________________
Added: svn:keywords
   + Author Date HeadURL Id Revision

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