]> code.delx.au - gnu-emacs/blobdiff - autogen.sh
Port autogen.sh hook creation to Apple Git
[gnu-emacs] / autogen.sh
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