projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce i18n.commitencoding.
[git.git]
/
templates
/
Makefile
diff --git
a/templates/Makefile
b/templates/Makefile
index
c23aee8
..
8f7f4fe
100644
(file)
--- a/
templates/Makefile
+++ b/
templates/Makefile
@@
-6,8
+6,13
@@
prefix ?= $(HOME)
template_dir ?= $(prefix)/share/git-core/templates/
# DESTDIR=
template_dir ?= $(prefix)/share/git-core/templates/
# DESTDIR=
+# Shell quote;
+# Result of this needs to be placed inside ''
+shq = $(subst ','\'',$(1))
+# This has surrounding ''
+shellquote = '$(call shq,$(1))'
+
all: boilerplates.made custom
all: boilerplates.made custom
- find blt
# Put templates that can be copied straight from the source
# in a file direc--tory--file in the source. They will be
# Put templates that can be copied straight from the source
# in a file direc--tory--file in the source. They will be
@@
-38,6
+43,6
@@
clean:
rm -rf blt boilerplates.made
install: all
rm -rf blt boilerplates.made
install: all
- $(INSTALL) -d -m755 $(
DESTDIR)$(template_dir
)
+ $(INSTALL) -d -m755 $(
call shellquote,$(DESTDIR)$(template_dir)
)
(cd blt && $(TAR) cf - .) | \
(cd blt && $(TAR) cf - .) | \
- (cd $(
DESTDIR)$(template_dir
) && $(TAR) xf -)
+ (cd $(
call shellquote,$(DESTDIR)$(template_dir)
) && $(TAR) xf -)