fix for Makefile
VERSION=$(shell python -c "import meshio; print(meshio.__version__)")
-# Make sure we're on the master branch
-ifneq "$(shell git rev-parse --abbrev-ref HEAD)" "master"
-$(error Not on master branch)
-endif
-
default:
@echo "\"make publish\"?"
@@ -14,12 +9,15 @@ README.rst: README.md
python setup.py check -r -s || exit 1
upload: setup.py README.rst
+ # Make sure we're on the master branch
+ @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
rm -f dist/*
python setup.py bdist_wheel --universal
gpg --detach-sign -a dist/*
twine upload dist/*
tag:
+ @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
@echo "Tagging v$(VERSION)..."
git tag v$(VERSION)
git push --tags
