On 10.04.2013 18:45, Andrey Borzenkov wrote: > В Tue, 9 Apr 2013 20:20:26 +0400 > Andrey Borzenkov пишет: > >> 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 [ -f grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then >> + if [ -h 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" > > > Hmm ... they become plain files in tardist ... > > What is better - check for both -f and -h or simply use cp instead of > ln? cp looks simpler and directory is regenerated from scratch anyway. > The idea behind ln is that if compilation fails on a file then when if you modified the file reported in error your changes will be to definite file, not to a temporary copy. > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel