diff options
author | Brent Eagles <brent@zeroc.com> | 2005-12-23 17:39:58 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-12-23 17:39:58 +0000 |
commit | 7c9f76aabcfbcfc6c0f0acb399fb37bacb893b83 (patch) | |
tree | 90d431bd5f879805998856317b71dc4429e3e1c0 /cpp/RPMTools.py | |
parent | initial add icepatch assembly pkgconfig file (diff) | |
download | ice-7c9f76aabcfbcfc6c0f0acb399fb37bacb893b83.tar.bz2 ice-7c9f76aabcfbcfc6c0f0acb399fb37bacb893b83.tar.xz ice-7c9f76aabcfbcfc6c0f0acb399fb37bacb893b83.zip |
working towards proper noarch dotnet RPM and proper assembly installation.
Diffstat (limited to 'cpp/RPMTools.py')
-rw-r--r-- | cpp/RPMTools.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/RPMTools.py b/cpp/RPMTools.py index 45a3d3437ea..a5105536072 100644 --- a/cpp/RPMTools.py +++ b/cpp/RPMTools.py @@ -155,7 +155,16 @@ class Package: ofile.write('\n') def writePostInstall(self, ofile, version, intVersion, installDir): - pass + ofile.write('''x=`which mono 2> /dev/null | grep mono` +if test ! "x$x" == "x"; +then + mono_home=`dirname $x | sed -e "s/\/bin$//"` + for f in icecs glacier2cs iceboxcs icegridcs icepatch2cs icestormcs; + do + sed -pi.bak -e 's/^mono_root.*$/mono_root = $mono_home/' /usr/lib/pkgconfig/$f ; + done +fi + ''') def writePostUninstall(self, ofile, version, intVersion, installDir): pass |