X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2FMakefile;h=a12c6e214e65d39136b1ed41a8ff0ea25e28f91b;hb=3536ae331014c68a25c80b3fb530a19c8dee0f11;hp=0722a926f71fb91a03a916e02fea456e8cc0086d;hpb=1293c95241531f7f17ddb58739c5c42da46fa78c;p=git.git diff --git a/templates/Makefile b/templates/Makefile index 0722a926f..a12c6e214 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 >$@