Solaris postinstall script.
authorScott Cantor <cantor.2@osu.edu>
Tue, 13 Nov 2007 22:23:03 +0000 (22:23 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 13 Nov 2007 22:23:03 +0000 (22:23 +0000)
Makefile.am
postinstall [new file with mode: 0644]

index 39fa737..05bea16 100644 (file)
@@ -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 (file)
index 0000000..321de70
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh\r
+\r
+cd ${CLIENT_BASEDIR}/share/xml/xmltooling\r
+\r
+sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" catalog.xml > catalog.xml.tmp\r
+mv catalog.xml.tmp catalog.xml\r
+chmod 644 catalog.xml\r
+\r
+exit 0\r