From fd24fadc52183a8ed2f4e67e6bb97002225aeb57 Mon Sep 17 00:00:00 2001 From: cantor Date: Tue, 13 Nov 2007 22:23:03 +0000 Subject: [PATCH] Solaris postinstall script. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@435 de75baf8-a10c-0410-a50a-987c0e22f00f --- Makefile.am | 3 ++- postinstall | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 postinstall diff --git a/Makefile.am b/Makefile.am index 39fa737..05bea16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,6 +49,7 @@ EXTRA_DIST = $(DX_CONFIG) \ xmltooling.spec \ pkginfo.in \ pkginfo \ - depend + depend \ + postinstall DISTCLEANFILES = xmltooling.spec pkginfo diff --git a/postinstall b/postinstall new file mode 100644 index 0000000..321de70 --- /dev/null +++ b/postinstall @@ -0,0 +1,9 @@ +#!/bin/sh + +cd ${CLIENT_BASEDIR}/share/xml/xmltooling + +sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" catalog.xml > catalog.xml.tmp +mv catalog.xml.tmp catalog.xml +chmod 644 catalog.xml + +exit 0 -- 2.1.4