@matheusbsbs / matheus-bagliano / commits / 96cda0b106
Fork 0

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>

Junio C Hamano committed Aug 21, 2008 at 19:31 UTC 96cda0b1067b4b5a2f87785cc49e1e648d68ae1d
1 file changed +2 -2
templates/Makefile
+2 -2
@@ -23,13 +23,13 @@ all: boilerplates.made custom
23
24 bpsrc = $(filter-out %~,$(wildcard *--*))
25 boilerplates.made : $(bpsrc)
26 - $(QUIET)ls *--* 2>/dev/null | \
26 + $(QUIET)umask 022 && ls *--* 2>/dev/null | \
27 while read boilerplate; \
28 do \
29 case "$$boilerplate" in *~) continue ;; esac && \
30 dst=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
31 dir=`expr "$$dst" : '\(.*\)/'` && \
32 - $(INSTALL) -d -m 755 blt/$$dir && \
32 + mkdir -p blt/$$dir && \
33 case "$$boilerplate" in \
34 *--) ;; \
35 *) cp -p $$boilerplate blt/$$dst ;; \