1 # make and install sample templates
5 template_dir
=$(prefix)/share
/git-core
/templates
/
8 all: boilerplates custom
11 # Put templates that can be copied straight from the source
12 # in a file direc--tory--file in the source. They will be
13 # just copied to the destination.
15 ls
*--* 2>/dev
/null | \
16 while read boilerplate
; \
18 case
"$$boilerplate" in
*~
) continue
;; esac
&& \
19 dst
=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
20 dir=`expr "$$dst" : '\(.*\)/'` && \
21 mkdir
-p blt
/$$dir && \
22 case
"$$boilerplate" in \
24 *) cp
$$boilerplate blt
/$$dst ;; \
28 # If you need build-tailored templates, build them into blt/
29 # directory yourself here.
31 : no custom templates yet
37 $(INSTALL
) -d
-m755
$(DESTDIR
)$(template_dir
)
38 tar Ccf blt
- . |
tar Cxf
$(DESTDIR
)$(template_dir
) -