termux-packages/packages/hfsutils/replace_hardlink_with_symlink.patch
Vladimir Serbinenko 73e4437907 hfsutils: New package.
This is a set of tools for manipulating of HFS images in userspace.
2017-08-10 02:11:42 +02:00

27 lines
890 B
Diff

diff -ur hfsutils-3.2.6-orig/Makefile.in hfsutils-3.2.6/Makefile.in
--- hfsutils-3.2.6-orig/Makefile.in 2017-08-03 04:55:38.195906965 +0200
+++ hfsutils-3.2.6/Makefile.in 2017-08-03 04:57:31.204993434 +0200
@@ -114,11 +114,9 @@
$(BININSTALL) $(HFSUTIL) "$(BINDEST)/."
for file in $(CLITARGETS); do \
- $(HARDLINK) "$(BINDEST)/$(HFSUTIL)" "$(BINDEST)/$$file"; \
+ ln -sf "$(HFSUTIL)" "$(BINDEST)/$$file"; \
done
- rm -f "$(BINDEST)/$(HFSUTIL)"
-
for file in $(GENERALDOCS) $(CLIDOCS); do \
$(LIBINSTALL) doc/man/$$file \
"$(MANDEST)/man$(MANEXT)/`basename $$file .1`.$(MANEXT)"; \
@@ -232,7 +230,7 @@
-lhfs $(LIBS) $(LIBOBJS) -o $@
$(CLITARGETS): $(HFSUTIL)
- -$(HARDLINK) $(HFSUTIL) $@
+ -ln -sf $(HFSUTIL) $@
hfssh: $(LIBHFS) hfssh.o tclhfs.o $(UTILOBJS) $(LIBOBJS)
$(CC) $(LDFLAGS) hfssh.o tclhfs.o $(UTILOBJS) \
Only in hfsutils-3.2.6: Makefile.in~