aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-21 19:31:50 -0500
committerJunio C Hamano <gitster@pobox.com>2008-08-22 00:21:59 -0700
commit96cda0b1067b4b5a2f87785cc49e1e648d68ae1d (patch)
tree55404f9d9783f3b02ec4cf2431caf4ffe02e06a6
parent2cb1f36d5098060a4bac182da16ceed3197a57c2 (diff)
downloadgit-96cda0b1067b4b5a2f87785cc49e1e648d68ae1d.tar.gz
git-96cda0b1067b4b5a2f87785cc49e1e648d68ae1d.tar.xz
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>
-rw-r--r--templates/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/Makefile b/templates/Makefile
index cc3fc3094..0722a926f 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -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 ;; \