summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-16 00:47:30 -0700
committerJunio C Hamano <gitster@pobox.com>2008-09-16 00:47:30 -0700
commitddf41044322825844b54a922dec2775ff6d61926 (patch)
treed7266e3b8e3b28d1577037a375c96f226e9166f8
parentfb0863a528c1503cba1a9b8bf8da11a8e0b271aa (diff)
parentd8bdc49265559786533d7f7377b2c39038dd6309 (diff)
downloadgit-ddf41044322825844b54a922dec2775ff6d61926.tar.gz
Merge branch 'jc/maint-template-permbits'
* jc/maint-template-permbits: Fix permission bits on sources checked out with an overtight umask
-rw-r--r--templates/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/Makefile b/templates/Makefile
index 0722a926f7..a12c6e214e 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -31,9 +31,11 @@ boilerplates.made : $(bpsrc)
dir=`expr "$$dst" : '\(.*\)/'` && \
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 >$@