blob: b5baca74b5b3474ab8c25befb3987b01e7dfeca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-templates_Makefile,v 1.1 2019/11/08 12:24:31 adam Exp $
--- templates/Makefile.orig 2010-10-22 03:49:16.000000000 +0000
+++ templates/Makefile
@@ -8,7 +8,7 @@ INSTALL ?= install
TAR ?= tar
RM ?= rm -f
prefix ?= $(HOME)
-template_instdir ?= $(prefix)/share/git-core/templates
+template_instdir = ${GIT_TEMPLATE_INSTDIR}
# DESTDIR=
ifndef SHELL_PATH
@@ -39,7 +39,7 @@ boilerplates.made : $(bpsrc)
case "$$boilerplate" in *~) continue ;; esac && \
dst=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
dir=`expr "$$dst" : '\(.*\)/'` && \
- mkdir -p blt/$$dir && \
+ $(BSD_INSTALL_DATA_DIR) blt/$$dir && \
case "$$boilerplate" in \
*--) continue;; \
esac && \
@@ -61,6 +61,6 @@ clean:
$(RM) -r blt boilerplates.made
install: all
- $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)'
+ $(BSD_INSTALL_DATA_DIR) '$(DESTDIR_SQ)$(template_instdir_SQ)'
(cd blt && $(TAR) cf - .) | \
(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xof -)
|