[librsvg/wip/lantw/Makefile.am-Don't-use-non-portable-syntax] Makefile.am: Don't use non-portable [[ syntax



commit bb3940d25568429b729ff6a0672bbf6c87e1a2f0
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Dec 10 06:42:09 2019 +0800

    Makefile.am: Don't use non-portable [[ syntax
    
    POSIX shell doesn't support [[ syntax, so using it can causes command
    not found errors.

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile.am b/Makefile.am
index 4c93fba3..faa60c0c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -198,7 +198,7 @@ librsvg_c_api.la: $(librsvg_c_api_la_OBJECTS) $(LIBRSVG_INTERNALS_SRC) $(LIBRSVG
        PKG_CONFIG='$(PKG_CONFIG)'                                              \
        CARGO_TARGET_DIR=$(CARGO_TARGET_DIR)                                    \
        $(CARGO) --locked build $(CARGO_VERBOSE) $(CARGO_TARGET_ARGS) $(CARGO_RELEASE_ARGS) \
-       && if [[ $$($(NM) -g $(RUST_LIB) | grep "T __*clzsi2" -c) -gt 1 ]] ; then \
+       && if [ "$$($(NM) -g $(RUST_LIB) | grep "T __*clzsi2" -c)" -gt 1 ] ; then \
                $(AR) d $(RUST_LIB) clzsi2.o;                                   \
        fi \
        && cd $(LIBRSVG_BUILD_DIR) && $(LINK) $< && mv $(RUST_LIB) .libs/librsvg_c_api.a


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]