[csw-devel] SF.net SVN: gar:[4292] csw/mgar/pkg/docbook-style-xsl/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Apr 13 16:14:55 CEST 2009


Revision: 4292
          http://gar.svn.sourceforge.net/gar/?rev=4292&view=rev
Author:   bdwalton
Date:     2009-04-13 14:14:55 +0000 (Mon, 13 Apr 2009)

Log Message:
-----------
converted to dynamic adm script

Modified Paths:
--------------
    csw/mgar/pkg/docbook-style-xsl/trunk/Makefile
    csw/mgar/pkg/docbook-style-xsl/trunk/checksums
    csw/mgar/pkg/docbook-style-xsl/trunk/files/CSWdocbookxsl.postinstall

Modified: csw/mgar/pkg/docbook-style-xsl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-style-xsl/trunk/Makefile	2009-04-13 01:41:12 UTC (rev 4291)
+++ csw/mgar/pkg/docbook-style-xsl/trunk/Makefile	2009-04-13 14:14:55 UTC (rev 4292)
@@ -33,8 +33,12 @@
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES  = docbook-xsl-$(GARVERSION).tar.bz2
 DISTFILES += docbook-xsl-doc-$(GARVERSION).tar.bz2
-DISTFILES += CSWdocbookxsl.postinstall CSWdocbookxsl.preremove
+DISTFILES += CSWdocbookxsl.preremove
 
+#use the dynamic adm script feature so we don't need to edit file at
+#version change
+include files/CSWdocbookxsl.postinstall
+
 PATCHFILES += add_makefile.patch
 
 CONFIGURE_SCRIPTS =

Modified: csw/mgar/pkg/docbook-style-xsl/trunk/checksums
===================================================================
--- csw/mgar/pkg/docbook-style-xsl/trunk/checksums	2009-04-13 01:41:12 UTC (rev 4291)
+++ csw/mgar/pkg/docbook-style-xsl/trunk/checksums	2009-04-13 14:14:55 UTC (rev 4292)
@@ -1,4 +1,3 @@
-c022eb8e15bf110605a4695235f20075  download/CSWdocbookxsl.postinstall
 1b98827c1a02fcec57ec0f7376bb8815  download/CSWdocbookxsl.preremove
 9ba4d6409de31404b8022f10630016e0  download/add_makefile.patch
 c77c0c317040b2f2e366842bd9df2218  download/docbook-xsl-1.74.3.tar.bz2

Modified: csw/mgar/pkg/docbook-style-xsl/trunk/files/CSWdocbookxsl.postinstall
===================================================================
--- csw/mgar/pkg/docbook-style-xsl/trunk/files/CSWdocbookxsl.postinstall	2009-04-13 01:41:12 UTC (rev 4291)
+++ csw/mgar/pkg/docbook-style-xsl/trunk/files/CSWdocbookxsl.postinstall	2009-04-13 14:14:55 UTC (rev 4292)
@@ -1,11 +1,12 @@
+define CSWdocbookxsl_postinstall
 #!/bin/sh
 
-case "$PKG_INSTALL_ROOT" in
+case "$$PKG_INSTALL_ROOT" in
     ""|"/") PREFIX= ;;
-    *) PREFIX="chroot $PKG_INSTALL_ROOT ";;
+    *) PREFIX="chroot $$PKG_INSTALL_ROOT ";;
 esac
 
-PATH=/opt/csw/bin:$PATH
+PATH=/opt/csw/bin:$$PATH
 
 CATCMD=/opt/csw/bin/xmlcatalog
 
@@ -14,17 +15,18 @@
 CATALOG=/opt/csw/etc/xml/catalog
 
 #we need a version here, since that will be referenced in URLS being redirected
-VERSION=1.74.3
+VERSION=$(GARVERSION)
 
-$PREFIX $CATCMD --noout --add "rewriteSystem" \
- "http://docbook.sourceforge.net/release/xsl/$VERSION" \
- "file://$DBHOME/xsl-stylesheets" $CATALOG
-$PREFIX $CATCMD --noout --add "rewriteURI" \
- "http://docbook.sourceforge.net/release/xsl/$VERSION" \
- "file://$DBHOME/xsl-stylesheets" $CATALOG
-$PREFIX $CATCMD --noout --add "rewriteSystem" \
+$$PREFIX $$CATCMD --noout --add "rewriteSystem" \
+ "http://docbook.sourceforge.net/release/xsl/$$VERSION" \
+ "file://$DBHOME/xsl-stylesheets" $$CATALOG
+$$PREFIX $$CATCMD --noout --add "rewriteURI" \
+ "http://docbook.sourceforge.net/release/xsl/$$VERSION" \
+ "file://$DBHOME/xsl-stylesheets" $$CATALOG
+$$PREFIX $$CATCMD --noout --add "rewriteSystem" \
  "http://docbook.sourceforge.net/release/xsl/current" \
- "file://$DBHOME/xsl-stylesheets" $CATALOG
-$PREFIX $CATCMD --noout --add "rewriteURI" \
+ "file://$DBHOME/xsl-stylesheets" $$CATALOG
+$$PREFIX $$CATCMD --noout --add "rewriteURI" \
  "http://docbook.sourceforge.net/release/xsl/current" \
- "file://$DBHOME/xsl-stylesheets" $CATALOG
+ "file://$DBHOME/xsl-stylesheets" $$CATALOG
+endef


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