From: vsr Date: Tue, 23 Mar 2004 16:20:20 +0000 (+0000) Subject: Pick-up environment for KERNEL X-Git-Tag: PAL_1_4_1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=62540823fb4cbe7f6e6402c1eb1fb3c24aaaca85;p=tools%2Finstall.git Pick-up environment for KERNEL --- diff --git a/runInstall b/runInstall index c6e5bdf..50aaa59 100755 --- a/runInstall +++ b/runInstall @@ -365,6 +365,12 @@ class ConfigParser(xmllib.XMLParser): def end_path(self): pass + def getProduct(self, prod): + for product in self.products: + if product.name == prod: + return product + return None + #================================================================ # get the path using file name #================================================================ @@ -555,5 +561,20 @@ if __name__ == "__main__": res = os.system(cmd) if res : break; + shFile = target_dir + "/env_products.sh" + cshFile = target_dir + "/env_products.csh" + binProduct = parser.getProduct("KERNEL-Bin") + srcProduct = parser.getProduct("KERNEL-Src") + if binProduct: + if os.path.exists(shFile): + os.system( "cp " + shFile + " " + target_dir + "/KERNEL_" + binProduct.version + "/salome.sh" ) + if os.path.exists(cshFile): + os.system( "cp " + cshFile + " " + target_dir + "/KERNEL_" + binProduct.version + "/salome.csh" ) + if srcProduct: + if os.path.exists(shFile): + os.system( "cp " + shFile + " " + target_dir + "/KERNEL_SRC_" + binProduct.version + "/salome.sh" ) + if os.path.exists(cshFile): + os.system( "cp " + cshFile + " " + target_dir + "/KERNEL_SRC_" + binProduct.version + "/salome.csh" ) + if len(root_path) and os.path.exists(root_path): os.system("rm -r -f "+ root_path)