diff options
Diffstat (limited to 'cpp/newmakebindist.py')
-rwxr-xr-x | cpp/newmakebindist.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py index a904083ede2..be1dbcb7038 100755 --- a/cpp/newmakebindist.py +++ b/cpp/newmakebindist.py @@ -300,6 +300,25 @@ def extractDemos(buildDir, version, distro, demoDir): os.system("sh -c 'for f in `find . -name .depend` ; do echo \"\" > $f ; done'") os.chdir(tcwd) + # C# specific build modifications + elif demoDir == "cs": + tcwd = os.getcwd() + os.chdir(buildDir + "/Ice-" + version + "-demos/config_" + demoDir) + script = "perl -pi -e 's/^slice_home.*$/ifeq (\$(ICE_HOME),)\n ICE_DIR \= \/usr\nelse\n" + script = script + " ICE_DIR \= \$(ICE_HOME)\n" + script = script + "endif\n/' Make.rules" + os.system(script) + + script = "perl -pi -e 's/^((?:lib|bin)dir.*=)\s*\$\(top_srcdir\)\/([A-Za-z]*).*$/$1 \\x24\(ICE_DIR\)\/$2/' " + script = script + "Make.rules" + os.system(script) + + + script = "perl -pi -e 's/^slicedir.*slice_home.*$/ifeq (\$(ICE_DIR),\/usr)\n" + script = script + " slicedir \:= \\x24\(ICE_DIR\)\/share\/slice\nelse\n" + script = script + " slicedir \:= \\x24\(ICE_DIR\)\/slice\nendif\n/' Make.rules" + os.system(script) + os.chdir(tcwd) shutil.rmtree(buildDir + "/demotree/" + distro, True) os.chdir(cwd) |