From: Anthony Geay Date: Fri, 26 Apr 2019 05:44:14 +0000 (+0200) Subject: Postinstall for debian packaging of OCCT-7.3.0p3 X-Git-Tag: V9_4_0a2^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a5d3ee7da9ec176020504190305cd752c54fa00;p=tools%2Fconfiguration.git Postinstall for debian packaging of OCCT-7.3.0p3 --- 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 index 0000000..869a6d2 --- /dev/null +++ b/config/patches/edf/OCCT_7.3.0p3_post_install.py @@ -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