Use log filtering to reduce file size

This commit is contained in:
Daniel Wang 2018-08-13 14:05:49 -04:00 committed by Thomas Ferreira de Lima
parent 9c4e478635
commit 28e703702f
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 13 additions and 11 deletions

View File

@ -1,5 +1,7 @@
.PHONY: help build deploy test dropbox-deploy .PHONY: help build deploy test dropbox-deploy
.ONESHELL:
default: help default: help
help: help:
@ -11,23 +13,23 @@ help:
@echo "Valid Python Version: [nil, Sys, B37]" @echo "Valid Python Version: [nil, Sys, B37]"
build: build:
./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew -c ./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew -c; \
./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew source filter-clang.sh; ./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew | filter
deploy: build deploy: build
./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew -y ./build4mac.py -p $(PYTHON_VERSION) -q Qt5Brew -y
test: deploy test: deploy
qt5.pkg.macos--release/klayout.app/Contents/MacOS/klayout -b -r test-pylib-script.py qt5.pkg.macos-$(MACOS_VERSION)-release/klayout.app/Contents/MacOS/klayout -b -r test-pylib-script.py; \
cd qt5.build.macos-$(MACOS_VERSION)-release cd qt5.build.macos-$(MACOS_VERSION)-release; \
ln -s klayout.app/Contents/MacOS/klayout klayout ln -s klayout.app/Contents/MacOS/klayout klayout; \
export TESTTMP=testtmp export TESTTMP=testtmp; \
export TESTSRC=.. export TESTSRC=..; \
./ut_runner -h ./ut_runner -h; \
./ut_runner -s ./ut_runner -s
dropbox-deploy: test dropbox-deploy: test
cd .. cd ..; \
export gitcommit=$(git rev-parse --short HEAD) export gitcommit=$(git rev-parse --short HEAD); \
mkdir deploy mkdir deploy; \
tar czf "deploy/qt5.pkg.macos-$(MACOS_VERSION)-release-$gitcommit.tar.gz" qt5.pkg.macos-$(MACOS_VERSION)-release tar czf "deploy/qt5.pkg.macos-$(MACOS_VERSION)-release-$gitcommit.tar.gz" qt5.pkg.macos-$(MACOS_VERSION)-release