[2/4] tcl: add a tclsh symlink

Submitted by Richard Genoud on June 20, 2013, 3:53 p.m.

Details

Message ID 1371743610-17810-3-git-send-email-richard.genoud@gmail.com
State Superseded
Headers show

Commit Message

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 hide | download patch | download mbox

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