зеркало из https://github.com/microsoft/git.git
Merge branch 'jc/maint-template-permbits' into maint
* jc/maint-template-permbits: Fix permission bits on sources checked out with an overtight umask
This commit is contained in:
Коммит
f99b1d23bb
|
@ -23,17 +23,19 @@ 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 ;; \
|
||||
esac || exit; \
|
||||
*--) continue;; \
|
||||
esac && \
|
||||
cp $$boilerplate blt/$$dst && \
|
||||
if test -x "blt/$$dst"; then rx=rx; else rx=r; fi && \
|
||||
chmod a+$$rx "blt/$$dst" || exit; \
|
||||
done && \
|
||||
date >$@
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче