]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Postinstall for debian packaging of OCCT-7.3.0p3
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 26 Apr 2019 05:44:14 +0000 (07:44 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 26 Apr 2019 05:44:14 +0000 (07:44 +0200)
config/patches/edf/OCCT_7.3.0p3_post_install.py [new file with mode: 0644]

diff --git a/config/patches/edf/OCCT_7.3.0p3_post_install.py b/config/patches/edf/OCCT_7.3.0p3_post_install.py
new file mode 100644 (file)
index 0000000..869a6d2
--- /dev/null
@@ -0,0 +1,13 @@
+
+# python OCCT_7.3.0p3_post_install.py $(CURDIR)/debian/${OCCT_INSTALL_DIR}/lib/cmake/opencascade
+
+import os,shutil,sys
+from glob import glob
+dn=sys.argv[1]
+fis=glob(os.path.join(dn,"*-release.cmake"))
+for fi in fis:
+    with open(fi) as f:
+        lines = [elt.replace("\\${OCCT_INSTALL_BIN_LETTER}","") for elt in f]
+    with open(fi,"w") as f2:
+        f2.writelines(lines)
+    pass