This sets the protocol choice according to the program invocation name.
That is the common lrzsz installation practice.
Cc: Matthew Starr <mstarr@hedonline.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
$(INSTALL) -m 0755 -D $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
ln -sf rz $(TARGET_DIR)/usr/bin/lrz
ln -sf sz $(TARGET_DIR)/usr/bin/lsz
+ ln -sf rz $(TARGET_DIR)/usr/bin/rb
+ ln -sf sz $(TARGET_DIR)/usr/bin/sb
+ ln -sf rz $(TARGET_DIR)/usr/bin/rx
+ ln -sf sz $(TARGET_DIR)/usr/bin/sx
endef
$(eval $(autotools-package))