Blame SOURCES/0319-autogen.sh-Use-f-in-addition-for-h-when-checking-fil.patch

f96e0b
From 9230f57ece9a9541a3db8246cde3aeab9cd10a04 Mon Sep 17 00:00:00 2001
f96e0b
From: Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
Date: Tue, 16 Apr 2013 16:18:12 +0200
f96e0b
Subject: [PATCH 319/482] 	* autogen.sh: Use "-f" in addition for "-h"
f96e0b
 when checking file presence.
f96e0b
f96e0b
---
f96e0b
 ChangeLog  | 4 ++++
f96e0b
 autogen.sh | 2 +-
f96e0b
 2 files changed, 5 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 6f33ff1..10db262 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,7 @@
f96e0b
+2013-04-16  Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
+
f96e0b
+	* autogen.sh: Use "-f" in addition for "-h" when checking file presence.
f96e0b
+
f96e0b
 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 2013-04-15  Peter Jones <pjones@redhat.com>
f96e0b
 
f96e0b
diff --git a/autogen.sh b/autogen.sh
f96e0b
index d47650b..48d7a6e 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 [ -h grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then
f96e0b
+    if [ -h grub-core/lib/libgcrypt-grub/mpi/"$x" ] || [ -f 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