mirror of
https://github.com/FlipsideCrypto/fsc-utils.git
synced 2026-02-06 10:56:49 +00:00
14 lines
377 B
Makefile
14 lines
377 B
Makefile
.PHONY: tag
|
|
MAX_COUNT ?= 1
|
|
|
|
tag:
|
|
@git add .
|
|
@git commit -m "Bump version to $(version)"
|
|
@git tag -a v$(version) -m "version $(version)"
|
|
@git push origin v$(version)
|
|
|
|
get_latest_tags:
|
|
@echo "Latest $(MAX_COUNT) tags:"
|
|
@git rev-list --tags --max-count=$(MAX_COUNT) | while read hash; do \
|
|
echo $$(tput setaf 2) `git describe --tags $$hash` $$(tput sgr0); \
|
|
done
|