Use 'cp' instead of 'cp -av' to fix portable issue
authorChengwei Yang <chengwei.yang@intel.com>
Wed, 25 Sep 2013 06:17:21 +0000 (14:17 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 25 Sep 2013 12:42:10 +0000 (13:42 +0100)
Neither '-a' nor '-v' of 'cp' is available on OpenBSD 5.3, so use 'cp'
instead to fix portable issue.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69789
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
autogen.sh

index 5d02a17905a5fd61121ce96501a8ca8182208750..b9046879cd79c60603eeb6d3557e961c5e2f7281 100755 (executable)
@@ -15,7 +15,7 @@ DIE=0
 
 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
     echo "Activating pre-commit hook."
-    cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
+    cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
     chmod +x .git/hooks/pre-commit
 fi