mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2025-12-16 12:00:12 +01:00
- Added commits-by-year graph/statistics. - Made 'since' use first reachable commit, instead of GIT epoch (May 2005). To avoid empty bars in the new 'Commits by years' graph. - Removed start-/end-year filter: on -by-weekday, -hour and -month. Instead made each `grep` look for its date tag fixed in a more specific sequence so as to not match commit message. Was giving problems if a since/until date-span larger than one year was given (ie. #135, #130, #123). Maybe should look at removing commit message from log listing entirely. Not sure why `grep -E "($startYear|$endYear)"` was ever introduced yet. - Made tests run properly, updated test with usage output. Added a test-case with LC_TIME=POSIX.
45 lines
940 B
Makefile
45 lines
940 B
Makefile
PREFIX ?= /usr/local
|
|
_INSTDIR ?= $(DESTDIR)$(PREFIX)
|
|
BINDIR ?= $(_INSTDIR)/bin
|
|
MANDIR ?= $(_INSTDIR)/share/man
|
|
TASK_DONE = echo -e "\n✓ $@ done\n"
|
|
SHELL := $(shell which bash)
|
|
|
|
.PHONY: test
|
|
|
|
all:
|
|
@echo "Usage:"
|
|
@echo " make install"
|
|
@echo " make reinstall"
|
|
@echo " make uninstall"
|
|
@echo " make test"
|
|
|
|
help:
|
|
$(MAKE) all
|
|
@$(TASK_DONE)
|
|
|
|
install:
|
|
install -d -m 0755 $(BINDIR)
|
|
install -m 0755 git-quick-stats $(BINDIR)/git-quick-stats
|
|
$(MAKE) man
|
|
@$(TASK_DONE)
|
|
|
|
uninstall:
|
|
rm -f $(BINDIR)/git-quick-stats
|
|
rm -f $(MANDIR)/man1/git-quick-stats.1
|
|
@$(TASK_DONE)
|
|
|
|
reinstall:
|
|
@curl -sO https://raw.githubusercontent.com/arzzen/git-quick-stats/master/git-quick-stats
|
|
@curl -sO https://raw.githubusercontent.com/arzzen/git-quick-stats/master/git-quick-stats.1
|
|
$(MAKE) install
|
|
@$(TASK_DONE)
|
|
|
|
man:
|
|
install -d -m 0755 $(MANDIR)/man1/
|
|
install -m 0644 git-quick-stats.1 $(MANDIR)/man1/
|
|
|
|
test:
|
|
tests/commands_test.sh
|
|
@$(TASK_DONE)
|