[Buildroot] [PATCH 2/4] tcl: add a tclsh symlink
Richard Genoud
richard.genoud at gmail.com
Thu Jun 20 15:53:28 UTC 2013
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 at gmail.com>
---
package/tcl/tcl.mk | 2 ++
1 file changed, 2 insertions(+)
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
--
1.7.10.4
More information about the buildroot
mailing list