* Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
Remove the original symlink explicitly.
* fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
just one slash. That's how grub_fshelp_find_file() does it.
2009-05-28 Pavel Roskin <proski@gnu.org>
+ * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
+ Remove the original symlink explicitly.
+
* fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
just one slash. That's how grub_fshelp_find_file() does it.
if test -f "$$dir$$file"; then \
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(includedir)/$$dest; \
elif test -L "$$dir$$file"; then \
- cp -d $$dir$$file $(DESTDIR)$(includedir)/$$dest; \
+ rm -rf $(DESTDIR)$(includedir)/$$dest && \
+ cp -fP $$dir$$file $(DESTDIR)$(includedir)/$$dest; \
fi; \
done
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)