Re: [PATCH] templates/Makefile: work around SGI install which assumes / if ROOT not defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano wrote:
> I do not see absolutely any reason to use install there.
> 
> I have to wonder why 9907721 (templates/Makefile: don't depend on local
> umask setting, 2008-02-28) did not do this instead:
> 
> 	$(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" : '\(.*\)/'` && \
> 		mkdir -p blt/$$dir && \
> 		case "$$boilerplate" in \
> 		*--) ;; \
> 		*) cp $$boilerplate blt/$$dst ;; \
> 		esac || exit; \
> 	done && \
> 	date >$@
> 

That works just fine for me.

-brandon

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux