Add version string to Makefile so users know their version

This commit is contained in:
Dion Moult
2019-11-17 12:40:14 +11:00
parent 85076dc697
commit f249d55d3c
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -7,10 +7,11 @@ endif
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*
cp -r io_export_ifc dist/
cp -r dist/io_import_scene_ifc/ifcopenshell dist/io_export_ifc/
cp -r blenderbim dist/
cp -r dist/io_import_scene_ifc/ifcopenshell dist/blenderbim/
rm -rf dist/io_import_scene_ifc
cd dist && zip -r blender28-bim-`date '+%y%m%d'`-$(PLATFORM).zip io_export_ifc
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
cd dist && rm -rf io_* && rm ifcblender-python-37-v0.6.0-b4ce5be-$(PLATFORM)64.zip
.PHONY: clean