git-shuffle

Randomize Git commit timestamps to enhance privacy

git clone https://git.8pit.net/git-shuffle.git

 1PREFIX ?= /usr/local
 2BINDIR ?= $(PREFIX)/bin
 3MANDIR ?= $(PREFIX)/share/man
 4DOCDIR ?= $(PREFIX)/share/doc/git-shuffle
 5
 6CFLAGS ?= -O0 -g -Werror
 7CFLAGS += -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L
 8CFLAGS += -Wpedantic -Wall -Wextra -Wconversion \
 9	      -Wmissing-prototypes -Wpointer-arith \
10	      -Wstrict-prototypes -Wshadow -Wformat
11
12CFLAGS += $(shell pkg-config --cflags libgit2)
13LDLIBS += $(shell pkg-config --libs libgit2)
14
15git-shuffle: git-shuffle.c
16install: git-shuffle git-shuffle.1 README.md
17	install -Dm755 git-shuffle "$(DESTDIR)$(BINDIR)/git-shuffle"
18	install -Dm644 git-shuffle.1 "$(DESTDIR)$(MANDIR)/man1/git-shuffle.1"
19	install -Dm644 README.md "$(DESTDIR)$(DOCDIR)/README.md"