From 54bcf87b452c7a7738009fb808d19610fdb31df8 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 10 Oct 2011 00:14:27 +0200 Subject: lrzsz: fix repeated target install Closes #4165 Use ln -sf in case destination already exists from an earlier install, and use install -D rather than cp while we're at it. Based on patch by Hector Oron Signed-off-by: Peter Korsgaard --- package/lrzsz/lrzsz.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'package/lrzsz') diff --git a/package/lrzsz/lrzsz.mk b/package/lrzsz/lrzsz.mk index 0d3347f8d..314f46a4a 100644 --- a/package/lrzsz/lrzsz.mk +++ b/package/lrzsz/lrzsz.mk @@ -36,10 +36,10 @@ define LRZSZ_BUILD_HOOKS 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 + $(INSTALL) -m 0755 -D $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz + $(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 endef define LRZSZ_CLEAN_CMDS -- cgit v1.2.3