Skip to contentSkip to conversation

lrzsz: add lrz/lsz symlinks

PATCH New Mike Frysinger 2 participants 2 messages Nov 20, 2010 – Nov 24, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lrzsz: add lrz/lsz symlinks

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.

---
 package/lrzsz/lrzsz.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
package/lrzsz/lrzsz.mk +3 -1
index 0b7f4e6..5897916 100644
@@ -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
 
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 lrzsz: add lrz/lsz symlinks

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Mike" == Mike Frysinger <[email protected]> writes:

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

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

Thanks, committed with small change (we normally use addprefix rather than patsubst)

Signature · 1 line
Bye, Peter Korsgaard