Fix non-portable use of chmod in autogen.sh.
authorWerner Koch <wk@gnupg.org>
Fri, 16 Nov 2012 09:36:53 +0000 (10:36 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Nov 2012 09:41:22 +0000 (10:41 +0100)
* autogen.sh: Remove option -c from chmod.

autogen.sh

index 0ec134d..dcb3834 100755 (executable)
@@ -287,7 +287,7 @@ if [ -d .git ]; then
     and .git/hooks/pre-commit.sample out of the way.
 EOF
       cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
-      chmod -c +x  .git/hooks/pre-commit
+      chmod +x  .git/hooks/pre-commit
   fi
   tmp=$(git config --get filter.cleanpo.clean)
   if [ "$tmp" != "awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'" ]
@@ -301,7 +301,7 @@ EOF
 *** Activating commit log message check hook. ***
 EOF
       cp -av scripts/git-hooks/commit-msg .git/hooks/commit-msg
-      chmod -c +x  .git/hooks/commit-msg
+      chmod +x  .git/hooks/commit-msg
   fi
 fi