2012-11-01 08:59:44 +00:00
|
|
|
VERSION = v21.0.3
|
2012-04-17 23:09:39 +00:00
|
|
|
TAGNAME = release-$(VERSION)
|
|
|
|
|
2012-10-31 03:30:45 +00:00
|
|
|
.PHONY: docs install uninstall tar test
|
2012-04-17 23:09:39 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
install.sh
|
|
|
|
|
2012-04-17 23:40:53 +00:00
|
|
|
uninstall:
|
|
|
|
uninstall.sh
|
|
|
|
|
2012-04-17 23:09:39 +00:00
|
|
|
docs:
|
2012-04-18 06:38:49 +00:00
|
|
|
pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1
|
2012-05-13 02:38:09 +00:00
|
|
|
pandoc -s -w markdown docs/header.md docs/install.md docs/development.md docs/body.md -o README.md
|
2012-04-17 23:09:39 +00:00
|
|
|
|
2012-05-28 19:18:28 +00:00
|
|
|
release: docs test
|
2012-04-17 23:09:39 +00:00
|
|
|
# Check for tag existence
|
|
|
|
# git describe release-$(VERSION) 2>&1 >/dev/null || exit 1
|
|
|
|
|
2012-04-17 23:40:53 +00:00
|
|
|
# Modify autojump with version
|
|
|
|
./tools/git-version.sh $(TAGNAME)
|
2012-04-17 23:09:39 +00:00
|
|
|
|
|
|
|
# Commit the version change
|
2012-04-17 23:40:53 +00:00
|
|
|
git commit -m "version numbering" ./bin/autojump
|
2012-04-17 23:09:39 +00:00
|
|
|
|
|
|
|
# Create tag
|
|
|
|
git tag -a $(TAGNAME)
|
|
|
|
|
2012-04-17 23:40:53 +00:00
|
|
|
# Create tagged archive
|
2012-04-17 23:09:39 +00:00
|
|
|
git archive --format=tar --prefix autojump_$(VERSION)/ $(TAGNAME) | gzip > autojump_$(VERSION).tar.gz
|
2012-05-13 02:31:58 +00:00
|
|
|
|
2012-10-31 03:30:45 +00:00
|
|
|
tar:
|
|
|
|
# Create tagged archive
|
|
|
|
git archive --format=tar --prefix autojump_$(VERSION)/ $(TAGNAME) | gzip > autojump_$(VERSION).tar.gz
|
|
|
|
|
2012-05-13 02:31:58 +00:00
|
|
|
test:
|
2012-05-13 03:00:38 +00:00
|
|
|
@tests/runtests.py
|