From 627cf63a4c8036ddcb481a0277692a1f822d0556 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Oct 2023 16:07:27 +0500 Subject: [PATCH] ifcfm symlink to dev environment setup script --- src/blenderbim/docs/devs/installation.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/docs/devs/installation.rst b/src/blenderbim/docs/devs/installation.rst index 51ec9d689a..a4f78147be 100644 --- a/src/blenderbim/docs/devs/installation.rst +++ b/src/blenderbim/docs/devs/installation.rst @@ -100,14 +100,16 @@ For Linux or Mac: $ ln -s $PWD/src/ifcopenshell-python/ifcopenshell/util $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/util # Remove and link other IfcOpenShell utilities + $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifccsv.py + $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcdiff.py $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifc4d $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifc5d $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifccityjson $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcclash $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcpatch $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifctester - $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifccsv.py - $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcdiff.py + $ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcfm + $ ln -s $PWD/src/ifccsv/ifccsv.py $BLENDER_ADDON_PATH/libs/site/packages/ifccsv.py $ ln -s $PWD/src/ifcdiff/ifcdiff.py $BLENDER_ADDON_PATH/libs/site/packages/ifcdiff.py $ ln -s $PWD/src/ifc4d/ifc4d $BLENDER_ADDON_PATH/libs/site/packages/ifc4d @@ -116,6 +118,7 @@ For Linux or Mac: $ ln -s $PWD/src/ifcclash/ifcclash $BLENDER_ADDON_PATH/libs/site/packages/ifcclash $ ln -s $PWD/src/ifcpatch/ifcpatch $BLENDER_ADDON_PATH/libs/site/packages/ifcpatch $ ln -s $PWD/src/ifctester/ifctester $BLENDER_ADDON_PATH/libs/site/packages/ifctester + $ ln -s $PWD/src/ifcfm/ifcfm $BLENDER_ADDON_PATH/libs/site/packages/ifcfm # Manually download some third party dependencies $ cd $BLENDER_ADDON_PATH/bim/data/gantt @@ -162,14 +165,16 @@ Before running it follow the instructions descibed after `rem` tags. mklink /D "%blenderbim%\libs\site\packages\ifcopenshell\util" "%cd%\src\ifcopenshell-python\ifcopenshell\util" echo Remove and link other IfcOpenShell utilities... + del "%blenderbim%\libs\site\packages\ifccsv.py" + del "%blenderbim%\libs\site\packages\ifcdiff.py" rd /S /Q "%blenderbim%\libs\site\packages\ifc4d" rd /S /Q "%blenderbim%\libs\site\packages\ifc5d" rd /S /Q "%blenderbim%\libs\site\packages\ifccityjson" rd /S /Q "%blenderbim%\libs\site\packages\ifcclash" rd /S /Q "%blenderbim%\libs\site\packages\ifcpatch" rd /S /Q "%blenderbim%\libs\site\packages\ifctester" - del "%blenderbim%\libs\site\packages\ifccsv.py" - del "%blenderbim%\libs\site\packages\ifcdiff.py" + rd /S /Q "%blenderbim%\libs\site\packages\ifcfm" + mklink "%blenderbim%\libs\site\packages\ifccsv.py" "%cd%\src\ifccsv\ifccsv.py" mklink "%blenderbim%\libs\site\packages\ifcdiff.py" "%cd%\src\ifcdiff\ifcdiff.py" mklink /D "%blenderbim%\libs\site\packages\ifc4d" "%cd%\src\ifc4d\ifc4d" @@ -178,6 +183,7 @@ Before running it follow the instructions descibed after `rem` tags. mklink /D "%blenderbim%\libs\site\packages\ifcclash" "%cd%\src\ifcclash\ifcclash" mklink /D "%blenderbim%\libs\site\packages\ifcpatch" "%cd%\src\ifcpatch\ifcpatch" mklink /D "%blenderbim%\libs\site\packages\ifctester" "%cd%\src\ifctester\ifctester" + mklink /D "%blenderbim%\libs\site\packages\ifcfm" "%cd%\src\ifcfm\ifcfm" echo Manually downloading some third party dependencies... curl https://raw.githubusercontent.com/jsGanttImproved/jsgantt-improved/master/dist/jsgantt.js -o "%blenderbim%\bim\data\gantt\jsgantt.js"