mirror of
https://github.com/git/git.git
synced 2024-10-28 21:07:52 +01:00
templates/Makefile: install is unnecessary, just use mkdir -p
The native install on some platforms (namely IRIX 6.5) treats non-absolute paths as being relative to the root directory rather than relative to the current directory. Work around this by avoiding install in this case since it is unnecessary, and instead depend on the local umask setting and use mkdir. Tested-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2cb1f36d50
commit
96cda0b106
1 changed files with 2 additions and 2 deletions
|
@ -23,13 +23,13 @@ all: boilerplates.made custom
|
|||
|
||||
bpsrc = $(filter-out %~,$(wildcard *--*))
|
||||
boilerplates.made : $(bpsrc)
|
||||
$(QUIET)ls *--* 2>/dev/null | \
|
||||
$(QUIET)umask 022 && ls *--* 2>/dev/null | \
|
||||
while read boilerplate; \
|
||||
do \
|
||||
case "$$boilerplate" in *~) continue ;; esac && \
|
||||
dst=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
|
||||
dir=`expr "$$dst" : '\(.*\)/'` && \
|
||||
$(INSTALL) -d -m 755 blt/$$dir && \
|
||||
mkdir -p blt/$$dir && \
|
||||
case "$$boilerplate" in \
|
||||
*--) ;; \
|
||||
*) cp -p $$boilerplate blt/$$dst ;; \
|
||||
|
|
Loading…
Reference in a new issue