templates: Mark only hooks as not-executable.

Previously all files in the template directory were investigated whether
they are scripts. But actually, we only want to disable the hooks, not any
other scripts (but currently there are no others anyway).

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
Johannes Sixt
2008-03-13 13:16:37 +01:00
parent a76ef1f443
commit 13cae476a6

View File

@@ -34,11 +34,8 @@ boilerplates.made : $(bpsrc)
$(INSTALL) -d -m 755 blt/$$dir && \
case "$$boilerplate" in \
*--) ;; \
*) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then \
cp -p "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \
else \
cp -p "$$boilerplate" "blt/$$dst"; \
fi ;; \
hooks--*) cp -p $$boilerplate blt/$${dst}$(NOEXECTEMPL) ;; \
*) cp -p $$boilerplate blt/$$dst ;; \
esac || exit; \
done && \
date >$@