Patchwork [2/4] tcl: add a tclsh symlink

login
register
mail settings
Submitter Richard Genoud
Date June 20, 2013, 3:53 p.m.
Message ID <1371743610-17810-3-git-send-email-richard.genoud@gmail.com>
Download mbox | patch
Permalink /patch/253018/
State Superseded
Headers show

Comments

Richard Genoud - June 20, 2013, 3:53 p.m.
tclsh is installed with its version number (tclshx.y) but scripts (like
usb_modeswitch_dispatcher) are calling tclsh, not tclshx.y.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
 package/tcl/tcl.mk |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk
index 1c23420..d81ad50 100644
--- a/package/tcl/tcl.mk
+++ b/package/tcl/tcl.mk
@@ -28,6 +28,8 @@  define TCL_POST_INSTALL_CLEANUP
 	fi
 	-if [ "$(BR2_PACKAGE_TCL_TCLSH)" != "y" ]; then \
 	rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR); \
+	else \
+	ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh ; \
 	fi
 endef