From 8d5afef0f9b3a252f7b90406d35c295dc698e26d Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 2 Aug 2005 16:45:21 -0700 Subject: Install sample hooks 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 --- templates/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/Makefile (limited to 'templates/Makefile') diff --git a/templates/Makefile b/templates/Makefile new file mode 100644 index 000000000..12433519e --- /dev/null +++ b/templates/Makefile @@ -0,0 +1,19 @@ +# 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 -- cgit v1.2.1