[Libreoffice-commits] core.git: configure.ac

Stephan Bergmann sbergman at redhat.com
Wed Feb 21 19:08:29 UTC 2018


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 55b310e785ed5fbdfb2996764751334dbb6fecdd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Feb 21 14:51:01 2018 +0100

    Use printf instead of echo, just in case
    
    ...$PRODUCTNAME happens to be -n (which is notoriously problematic with various
    versions of echo).
    
    Change-Id: I09dfb562689138aa0135982725bf2c254ce06e59
    Reviewed-on: https://gerrit.libreoffice.org/50104
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/configure.ac b/configure.ac
index 479968be94b9..58451b4912c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -168,7 +168,7 @@ if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
 fi
 AC_MSG_RESULT([$PRODUCTNAME])
 AC_SUBST(PRODUCTNAME)
-PRODUCTNAME_WITHOUT_SPACES=$(echo "$PRODUCTNAME" | sed 's/ //g')
+PRODUCTNAME_WITHOUT_SPACES=$(printf %s "$PRODUCTNAME" | sed 's/ //g')
 AC_SUBST(PRODUCTNAME_WITHOUT_SPACES)
 
 dnl ===================================================================


More information about the Libreoffice-commits mailing list