]> code.delx.au - gnu-emacs/commitdiff
Port autogen.sh hook creation to Apple Git
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Jan 2015 06:34:25 +0000 (22:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Jan 2015 06:35:03 +0000 (22:35 -0800)
* autogen.sh: Do not assume that the hook samples exist.
This ports to git version 1.9.3 (Apple Git-50).
For some reason Apple decided to populate the git hooks directory
in a different way from the way that standard Git does it.
The downside is that patch applications won't be checked on Apple,
but that's better than autogen.sh failing.
Problem reported by Sam Steingold in:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00898.html

ChangeLog
autogen.sh

index 2ab82350da2658e2931b0e741d55af2a3cddcde8..09a7968d58784757a52c5c55b2297d30fe9faa1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2015-01-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port autogen.sh hook creation to Apple Git
+       * autogen.sh: Do not assume that the hook samples exist.
+       This ports to git version 1.9.3 (Apple Git-50).
+       For some reason Apple decided to populate the git hooks directory
+       in a different way from the way that standard Git does it.
+       The downside is that patch applications won't be checked on Apple,
+       but that's better than autogen.sh failing.
+       Problem reported by Sam Steingold in:
+       http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00898.html
+
 2015-01-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * INSTALL.REPO: Mention minimum Git version.
index c3ae1d766df081cb9554e026fbfbe5e15a879d3a..bc9c5a008e034479aa1c146332de6f0b318399c4 100755 (executable)
@@ -226,6 +226,7 @@ if test -d .git/hooks; then
        tailored_hooks="$tailored_hooks $hook"
     done
     for hook in applypatch-msg pre-applypatch; do
+       test ! -r .git/hooks/$hook.sample ||
        cmp .git/hooks/$hook.sample .git/hooks/$hook >/dev/null 2>&1 ||
        sample_hooks="$sample_hooks $hook"
     done