From: Johannes Sixt Date: Thu, 28 Feb 2008 20:48:47 GMT Subject: Re: [PATCH 19/40] Windows: Change the name of hook scripts to make them not executable. Message-ID: <200802282148.47485.johannes.sixt@telecom.at> In-Reply-To: On Thursday 28 February 2008 16:20, Johannes Schindelin wrote: > On Wed, 27 Feb 2008, Johannes Sixt wrote: > > - *) cp $$boilerplate blt/$$dst ;; \ > > + *) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then > > \ + cp "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \ > > + else \ > > + cp "$$boilerplate" "blt/$$dst"; \ > > + fi ;; \ > > Why not just append .noexec to all of the hooks? Because some of the files are not hooks. Or do you mean to check for the files hooks--* explicitly? -- Hannes