You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
773 B

  1. VERSION = v20
  2. TAGNAME = release-$(VERSION)
  3. .PHONY: docs install uninstall test
  4. install:
  5. install.sh
  6. uninstall:
  7. uninstall.sh
  8. docs:
  9. pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1
  10. pandoc -s -w markdown docs/header.md docs/install.md docs/development.md docs/body.md -o README.md
  11. release: docs test
  12. # Check for tag existence
  13. # git describe release-$(VERSION) 2>&1 >/dev/null || exit 1
  14. # Modify autojump with version
  15. ./tools/git-version.sh $(TAGNAME)
  16. # Commit the version change
  17. git commit -m "version numbering" ./bin/autojump
  18. # Create tag
  19. git tag -a $(TAGNAME)
  20. # Create tagged archive
  21. git archive --format=tar --prefix autojump_$(VERSION)/ $(TAGNAME) | gzip > autojump_$(VERSION).tar.gz
  22. test:
  23. @tests/runtests.py