Link Here
|
1 |
--- Makefile.orig 2022-10-06 12:33:44 UTC |
1 |
--- Makefile.orig 2023-04-24 17:16:52 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -3,7 +3,7 @@ BINPREFIX ?= "$(PREFIX)/bin" |
3 |
@@ -8,11 +8,13 @@ endif |
4 |
|
|
|
5 |
OS = $(shell uname) |
6 |
ifeq ($(OS), FreeBSD) |
7 |
- MANPREFIX ?= "$(PREFIX)/man/man1" |
8 |
+ MANPREFIX = "$(PREFIX)/man/man1" |
9 |
else |
4 |
else |
10 |
MANPREFIX ?= "$(PREFIX)/share/man/man1" |
5 |
MANPREFIX ?= "$(PREFIX)/share/man/man1" |
11 |
endif |
6 |
endif |
12 |
@@ -69,8 +69,8 @@ install: check |
7 |
+MANPREFIX = "$(PREFIX)/man/man1" |
13 |
cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \ |
8 |
ifeq ($(OS), Darwin) |
14 |
echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \ |
9 |
COMPL_DIR ?= "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d" |
15 |
fi |
10 |
else |
16 |
- @mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions |
11 |
COMPL_DIR ?= "$(DESTDIR)$(SYSCONFDIR)/bash-completion/completions" |
17 |
- cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras |
12 |
endif |
18 |
+ @mkdir -p $(DESTDIR)$(PREFIX)/share/bash-completion/completions |
13 |
+COMPL_DIR = "$(DESTDIR)$(PREFIX)/share/bash-completion/completions" |
19 |
+ cp -f etc/bash_completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/git-extras |
|
|
20 |
@echo "" |
21 |
@echo "If you are a zsh user, you may want to 'source $(CODE_DIR)etc/git-extras-completion.zsh'" \ |
22 |
"and put this line into ~/.zshrc to enable zsh completion" |
23 |
@@ -119,7 +119,7 @@ uninstall: |
24 |
echo "... uninstalling $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN))"; \ |
25 |
rm -f $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN)); \ |
26 |
) |
27 |
- rm -f $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras |
28 |
+ rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/git-extras |
29 |
|
30 |
clean: docclean |
31 |
|
14 |
|
|
|
15 |
SYSCONFDIR ?= $(PREFIX)/etc |
16 |
BINS = $(wildcard bin/git-*) |