Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] lrzsz: add lrz/lsz symlinks
@ 2010-11-20  5:27 Mike Frysinger
  2010-11-24 21:31 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-11-20  5:27 UTC (permalink / raw)
  To: buildroot

Many systems support automatic zmodem transfers without needing to first
manually run the zmodem utils.  But the expectation is to run `lrz` and
not `rz`.  So install symlinks for lrz->rz and lsz->sz to support this.

This also includes a small fix to also remove sz when cleaning.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 package/lrzsz/lrzsz.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/package/lrzsz/lrzsz.mk b/package/lrzsz/lrzsz.mk
index 0b7f4e6..5897916 100644
--- a/package/lrzsz/lrzsz.mk
+++ b/package/lrzsz/lrzsz.mk
@@ -39,10 +39,12 @@ endef
 define LRZSZ_INSTALL_TARGET_CMDS
 	cp $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
 	cp $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
+	ln -s rz $(TARGET_DIR)/usr/bin/lrz
+	ln -s sz $(TARGET_DIR)/usr/bin/lsz
 endef
 
 define LRZSZ_CLEAN_CMDS
-	rm -f $(TARGET_DIR)/usr/bin/rz
+	rm -f $(patsubst %,$(TARGET_DIR)/usr/bin/%,rz sz lrz lsz)
 	-$(MAKE) -C $(@D) clean
 endef
 
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-24 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  5:27 [Buildroot] [PATCH] lrzsz: add lrz/lsz symlinks Mike Frysinger
2010-11-24 21:31 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox