Since only hooks need to be executable, how about this instead:
diff --git a/templates/Makefile b/templates/Makefile
index 0722a92..80cd000 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -32,7 +32,12 @@ boilerplates.made : $(bpsrc)
mkdir -p blt/$$dir && \
case "$$boilerplate" in \
*--) ;; \
- *) cp -p $$boilerplate blt/$$dst ;; \
+ hooks--*) \
+ cp -p "$$boilerplate" "blt/$$dst" && \
+ chmod a+rx "blt/$$dst";; \
+ *) \
+ cp -p "$$boilerplate" "blt/$$dst" && \
+ chmod a+r "blt/$$dst";; \
esac || exit; \
done && \
date >$@
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html