Re: Commit templates are not readable after 'make install'

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Tuesday, September 9, 2008 - 11:34 pm

Junio C Hamano schrieb:

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Commit templates are not readable after 'make install', Anatol Pomozov, (Tue Sep 9, 12:02 pm)
Re: Commit templates are not readable after 'make install', Junio C Hamano, (Tue Sep 9, 12:19 pm)
Re: Commit templates are not readable after 'make install', Johannes Sixt, (Tue Sep 9, 11:34 pm)
Re: Commit templates are not readable after 'make install', Anatol Pomozov, (Thu Sep 11, 10:21 am)