From 13cae476a6ebb4239531b578109b7130d620ae42 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 13 Mar 2008 13:16:37 +0100 Subject: [PATCH] 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 --- templates/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/templates/Makefile b/templates/Makefile index 90bb91d6d7..ab2c823ae0 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -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 >$@ -- 2.11.4.GIT