Makefile 330 B

1234567891011121314151617
  1. .PHONY: verify-tag release
  2. default: release
  3. verify-tag:
  4. ifndef TAG
  5. $(error TAG is undefined)
  6. endif
  7. release: verify-tag
  8. @ OLD_TAG=`git describe --abbrev=0 --tags` && \
  9. npm run minify && \
  10. replace "$${OLD_TAG/v/}" "$(TAG)" -- *.json README.md && \
  11. git commit -m "v$(TAG)" *.js *.json README.md && \
  12. git tag "v$(TAG)"