mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
autojump.py is now a source file, autojump is the executable with version information. Makefile automatically looks for last tagged commit when making the release tar.gz
14 lines
375 B
Makefile
14 lines
375 B
Makefile
.PHONY: release
|
|
|
|
autojump: autojump.py
|
|
./git-version.sh
|
|
|
|
version=`git describe $$(git rev-list --tags --max-count=1)`
|
|
number=`git describe $$(git rev-list --tags --max-count=1) | sed "s/^[a-z]*-//"`
|
|
release:
|
|
echo $(TAG)
|
|
@echo NOTE: make sure you\'re on a tagged commit
|
|
git archive --format=tar --prefix autojump_$(number)/ $(version) | gzip > autojump_$(number).tar.gz
|
|
|
|
|