summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2013-06-24 08:40:55 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-28 14:20:08 (GMT)
commit8d0413fd370f47014287976f195dc745b95e49d3 (patch)
treee26aa81e5cd4053245246aba7be6c31cd4726428
parent0b59411c759c8fe97e4edf78a7cd489d5c86ad66 (diff)
downloadbuildroot-8d0413fd370f47014287976f195dc745b95e49d3.tar.gz
buildroot-8d0413fd370f47014287976f195dc745b95e49d3.tar.bz2
tcl: add a tclsh symlink
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/tcl/tcl.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk
index cc0565c..c145f57 100644
--- a/package/tcl/tcl.mk
+++ b/package/tcl/tcl.mk
@@ -35,6 +35,11 @@ define TCL_REMOVE_TCLSH
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
endef
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH
+else
+define TCL_SYMLINK_TCLSH
+ ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
+endef
+TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
endif
$(eval $(autotools-package))