From 7f9c90c8b208260d5ba3fdabdb14cc0c15aad9b3 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Sun, 17 Jul 2011 04:30:49 +0000 Subject: [PATCH] make sure that scripts are executable --- src/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index b3b817c..dd352ee 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,3 +25,10 @@ libctatools_la_LIBADD = ctbin/libctbin.la \ EXTRA_DIST = $(scripts) scriptsdir = $(bindir) scripts_DATA = $(scripts) + +# Add hook rule to make scripts executable +install-data-hook: + @list='$(scripts_DATA)';\ + for p in $$list; do \ + if test -f "$$p"; then chmod +x "$(DESTDIR)$(scriptsdir)/$$p"; fi; \ + done -- libgit2 0.21.4