grub2/0318-autogen.sh-Use-f-in-addition-for-h-when-checking-fil.patch
2013-05-02 16:54:52 -04:00

40 lines
1.4 KiB
Diff

From 25e2e87a9e3a65c9ccad0155f3969fb94325a32e Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 16 Apr 2013 16:18:12 +0200
Subject: [PATCH 318/364] * autogen.sh: Use "-f" in addition for "-h"
when checking file presence.
---
ChangeLog | 4 ++++
autogen.sh | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 6f33ff1..10db262 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
+
+ * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
+
2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2013-04-15 Peter Jones <pjones@redhat.com>
diff --git a/autogen.sh b/autogen.sh
index d47650b..48d7a6e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -24,7 +24,7 @@ ln -s ../../../grub-core/lib/libgcrypt-grub/src/g10lib.h include/grub/gcrypt/g10
cp -R grub-core/lib/libgcrypt/mpi/generic grub-core/lib/libgcrypt-grub/mpi/generic
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
- if [ -h grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then
+ if [ -h grub-core/lib/libgcrypt-grub/mpi/"$x" ] || [ -f grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then
rm grub-core/lib/libgcrypt-grub/mpi/"$x"
fi
ln -s generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x"
--
1.8.1.4