package/tcl: fix for POSIX compliance
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>
Mon, 20 Sep 2010 21:26:09 +0000 (23:26 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 30 Sep 2010 20:09:01 +0000 (22:09 +0200)
Using two '=' for string comparison is a bashism.
Revert to using one, as stated in POSIX 1003.1-2008.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/tcl/tcl.mk

index edcc4417a5dc010b08d26db4788fc193c8c08695..cf46811ccd0648a3b56a6fbfef01219ac576a8d5 100644 (file)
@@ -15,10 +15,10 @@ TCL_CONF_OPT = \
 
 define TCL_POST_INSTALL_CLEANUP
        -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
-       -if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" == "y" ]; then \
+       -if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" = "y" ]; then \
        rm -Rf $(TARGET_DIR)/usr/lib/tcl8.4/encoding/*; \
        fi
-       -if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" == "y" ]; then \
+       -if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" = "y" ]; then \
        rm -f $(TARGET_DIR)/usr/bin/tclsh8.4; \
        fi
 endef