[5/6] tcl: add a tclsh symlink

Submitted by Richard Genoud on June 21, 2013, 11:57 a.m.

Details

Message ID 51c43fa4.ebbbb40a.0abf.ffffba19@mx.google.com
State Superseded
Headers show

Commit Message

Richard Genoud June 21, 2013, 11:57 a.m.
From: Richard Genoud <richard.genoud@gmail.com>

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 |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk
index 90989d0..b50daeb 100644
--- a/package/tcl/tcl.mk
+++ b/package/tcl/tcl.mk
@@ -30,7 +30,12 @@  endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_ENCODINGS
 endif
 
-ifneq ($(BR2_PACKAGE_TCL_TCLSH),y)
+ifeq ($(BR2_PACKAGE_TCL_TCLSH),y)
+define TCL_SYMLINK_TCLSH
+	ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
+endef
+TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
+else
 define TCL_REMOVE_TCLSH
 	rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
 endef