* autogen.sh: Use "-f" in addition for "-h" when checking file presence.

This commit is contained in:
Andrey Borzenkov 2013-04-16 16:18:12 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent a7e03923fa
commit 740201f3ab
2 changed files with 5 additions and 1 deletions

View File

@ -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>

View File

@ -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"