Blame SOURCES/0276-autogen.sh-Use-h-not-f-to-test-for-existence-of-symb.patch

f96e0b
From 2d3ccedf0ae9aeb340622628c74a1d58132d35f2 Mon Sep 17 00:00:00 2001
f96e0b
From: Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
Date: Wed, 10 Apr 2013 15:57:40 +0200
f96e0b
Subject: [PATCH 276/482] 	* autogen.sh: Use "-h", not "-f", to test for
f96e0b
 existence of symbolic 	links under grub-core/lib/libgcrypt-grub/mpi.
f96e0b
f96e0b
---
f96e0b
 ChangeLog  | 5 +++++
f96e0b
 autogen.sh | 2 +-
f96e0b
 2 files changed, 6 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index e45ca35..fd9c082 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2013-04-09  Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
+
f96e0b
+	* autogen.sh: Use "-h", not "-f", to test for existence of symbolic
f96e0b
+	links under grub-core/lib/libgcrypt-grub/mpi.
f96e0b
+
f96e0b
 2013-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	Fix ia64-efi image generation on big-endian machines. Deduplicate
f96e0b
diff --git a/autogen.sh b/autogen.sh
f96e0b
index 7a4b5c8..d47650b 100755
f96e0b
--- a/autogen.sh
f96e0b
+++ b/autogen.sh
f96e0b
@@ -24,7 +24,7 @@ ln -s ../../../grub-core/lib/libgcrypt-grub/src/g10lib.h include/grub/gcrypt/g10
f96e0b
 cp -R grub-core/lib/libgcrypt/mpi/generic grub-core/lib/libgcrypt-grub/mpi/generic
f96e0b
 
f96e0b
 for x in mpi-asm-defs.h mpih-add1.c mpih-sub1.c mpih-mul1.c mpih-mul2.c mpih-mul3.c mpih-lshift.c mpih-rshift.c; do
f96e0b
-    if [ -f grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then
f96e0b
+    if [ -h grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then
f96e0b
 	rm grub-core/lib/libgcrypt-grub/mpi/"$x"
f96e0b
     fi
f96e0b
     ln -s generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b