mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Consolidate version numbers.
Instead of keeping the version number in two separate places, the Makefile will now grep bin/autojump for the proper version number.
This commit is contained in:
parent
2554fc7ed4
commit
02a47db68d
10
Makefile
10
Makefile
@ -1,5 +1,5 @@
|
|||||||
VERSION = v21.0.4
|
VERSION = $(shell grep -oE "[0-9]+\.[0-9]+\.[0-9]+" bin/autojump)
|
||||||
TAGNAME = release-$(VERSION)
|
TAGNAME = release-v$(VERSION)
|
||||||
|
|
||||||
.PHONY: docs install uninstall tar test
|
.PHONY: docs install uninstall tar test
|
||||||
|
|
||||||
@ -27,11 +27,13 @@ release: docs test
|
|||||||
git tag -a $(TAGNAME)
|
git tag -a $(TAGNAME)
|
||||||
|
|
||||||
# Create tagged archive
|
# Create tagged archive
|
||||||
git archive --format=tar --prefix autojump_$(VERSION)/ $(TAGNAME) | gzip > autojump_$(VERSION).tar.gz
|
git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz
|
||||||
|
sha1sum autojump_v$(VERSION).tar.gz
|
||||||
|
|
||||||
tar:
|
tar:
|
||||||
# Create tagged archive
|
# Create tagged archive
|
||||||
git archive --format=tar --prefix autojump_$(VERSION)/ $(TAGNAME) | gzip > autojump_$(VERSION).tar.gz
|
git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz
|
||||||
|
sha1sum autojump_v$(VERSION).tar.gz
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@tests/runtests.py
|
@tests/runtests.py
|
||||||
|
Loading…
Reference in New Issue
Block a user