void-packages/srcpkgs/lrzsz/patches/symlinks.patch

33 lines
1.5 KiB
Diff
Raw Normal View History

2013-03-18 13:30:32 +01:00
--- src/Makefile.in.orig 2013-03-18 13:25:04.431274094 +0100
+++ src/Makefile.in 2013-03-18 13:25:30.533766161 +0100
@@ -282,7 +282,7 @@
@for file in $(DISTFILES); do \
d=$(srcdir); \
test -f $(distdir)/$$file \
- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
+ || ln -rfs $$d/$$file $(distdir)/$$file 2> /dev/null \
2013-03-18 13:30:32 +01:00
|| cp -p $$d/$$file $(distdir)/$$file; \
done
canit.o: canit.c zglobal.h ../config.h zmodem.h ../lib/getopt.h
@@ -370,16 +370,16 @@
install-exec-local:
rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
- ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ ln -rs $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
2013-03-18 13:30:32 +01:00
$(DESTDIR)/$(bindir)/`echo lsb |sed -e '$(transform)'`
rm -f $(bindir)/`echo lsx | sed -e '$(transform)'`
- ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ ln -rs $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
2013-03-18 13:30:32 +01:00
$(DESTDIR)/$(bindir)/`echo lsx |sed -e '$(transform)'`
rm -f $(bindir)/`echo lrb | sed -e '$(transform)'`
- ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ ln -rs $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
2013-03-18 13:30:32 +01:00
$(DESTDIR)/$(bindir)/`echo lrb |sed -e '$(transform)'`
rm -f $(bindir)/`echo lrx | sed -e '$(transform)'`
- ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ ln -rs $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
2013-03-18 13:30:32 +01:00
$(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'`
# rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`
# ln $(bindir)/`echo lrzszbug |sed -e '$(transform)'` \