2019-10-06 19:59:41 +11:00
|
|
|
.PHONY: dist
|
|
|
|
|
dist:
|
|
|
|
|
ifndef PLATFORM
|
|
|
|
|
$(error PLATFORM is not set)
|
|
|
|
|
endif
|
|
|
|
|
rm -rf dist
|
|
|
|
|
mkdir -p dist
|
|
|
|
|
cd dist && wget https://s3.amazonaws.com/ifcopenshell-builds/ifcblender-python-37-v0.6.0-b4ce5be-$(PLATFORM)64.zip
|
|
|
|
|
cd dist && unzip ifcblender*
|
2019-11-17 12:40:14 +11:00
|
|
|
cp -r blenderbim dist/
|
|
|
|
|
cp -r dist/io_import_scene_ifc/ifcopenshell dist/blenderbim/
|
2019-10-13 20:20:48 +11:00
|
|
|
rm -rf dist/io_import_scene_ifc
|
2019-11-17 12:40:14 +11:00
|
|
|
cd dist/blenderbim && export VERSION=`date '+%y%m%d'` && sed -i "s/999999/$(VERSION)/" __init__.py
|
|
|
|
|
cd dist && zip -r blender28-bim-`date '+%y%m%d'`-$(PLATFORM).zip blenderbim
|
2019-11-21 21:49:18 +11:00
|
|
|
cd dist && rm -rf io_* && rm -rf blenderbim && rm ifcblender-python-37-v0.6.0-b4ce5be-$(PLATFORM)64.zip
|
2019-10-06 19:59:41 +11:00
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
clean:
|
|
|
|
|
rm -rf dist
|