8d5afef0f9
A template mechanism to populate newly initialized repository with default set of files is introduced. Use it to ship example hooks that can be used for update and post update checks, as Josef Weidendorfer suggests. Signed-off-by: Junio C Hamano <junkio@cox.net>
20 lines
423 B
Makefile
20 lines
423 B
Makefile
# make
|
|
|
|
INSTALL=install
|
|
prefix=$(HOME)
|
|
etcdir=$(prefix)/etc
|
|
etcgitdir=$(etcdir)/git-core
|
|
templatedir=$(etcgitdir)/templates
|
|
# dest=
|
|
|
|
all:
|
|
clean:
|
|
|
|
install:
|
|
$(INSTALL) -d -m755 $(dest)$(templatedir)/hooks/
|
|
$(foreach s,$(wildcard hooks--*),\
|
|
$(INSTALL) -m644 $s \
|
|
$(dest)$(templatedir)/hooks/$(patsubst hooks--%,%,$s);)
|
|
$(INSTALL) -d -m755 $(dest)$(templatedir)/info
|
|
$(INSTALL) -d -m755 $(dest)$(templatedir)/branches
|