From: Michael Wallner Date: Mon, 5 Oct 2020 09:31:58 +0000 (+0200) Subject: fix quoting X-Git-Tag: 1.1.0-beta1~236^2~22^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5c408a353db507e7c3fa4694dd2548a4a29215bc;p=m6w6%2Flibmemcached fix quoting --- diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index 489230fb..2f4722b3 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -96,13 +96,13 @@ function steps_setenv($splat_map = null) { - name: Prepare environment () if: () run: | - echo "CC=''" >> ${GITHUB_ENV} - echo "CXX=''" >> ${GITHUB_ENV} + echo CC="" >> ${GITHUB_ENV} + echo CXX="" >> ${GITHUB_ENV} $val) { ?> - echo "=''" >> ${GITHUB_ENV}} + echo ="" >> ${GITHUB_ENV}} > ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -151,7 +151,7 @@ function steps_getdeps() { make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi > ${GITHUB_ENV} - echo "CXX='g++-9'" >> ${GITHUB_ENV} + echo CC="gcc-9" >> ${GITHUB_ENV} + echo CXX="g++-9" >> ${GITHUB_ENV} - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | @@ -61,7 +61,7 @@ jobs: run: | brew install bison flex ${INSTALL_MEMCACHED} brew services stop memcached || true - echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -81,7 +81,7 @@ jobs: make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) run: cmake -S . -B build @@ -106,8 +106,8 @@ jobs: - name: Prepare environment (for cur gnu on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur') run: | - echo "CC='gcc-9'" >> ${GITHUB_ENV} - echo "CXX='g++-9'" >> ${GITHUB_ENV} + echo CC="gcc-9" >> ${GITHUB_ENV} + echo CXX="g++-9" >> ${GITHUB_ENV} - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | @@ -122,7 +122,7 @@ jobs: run: | brew install bison flex ${INSTALL_MEMCACHED} brew services stop memcached || true - echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -142,7 +142,7 @@ jobs: make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) run: cmake -S . -B build @@ -168,8 +168,8 @@ jobs: - name: Prepare environment (for cur gnu on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur') run: | - echo "CC='gcc-9'" >> ${GITHUB_ENV} - echo "CXX='g++-9'" >> ${GITHUB_ENV} + echo CC="gcc-9" >> ${GITHUB_ENV} + echo CXX="g++-9" >> ${GITHUB_ENV} - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | @@ -184,7 +184,7 @@ jobs: run: | brew install bison flex ${INSTALL_MEMCACHED} brew services stop memcached || true - echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -204,7 +204,7 @@ jobs: make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) run: cmake -S . -B build @@ -240,7 +240,7 @@ jobs: run: | brew install bison flex ${INSTALL_MEMCACHED} brew services stop memcached || true - echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -260,7 +260,7 @@ jobs: make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) run: cmake -S . -B build @@ -295,66 +295,66 @@ jobs: - name: Prepare environment (for new gnu on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new') run: | - echo "CC='gcc-10'" >> ${GITHUB_ENV} - echo "CXX='g++-10'" >> ${GITHUB_ENV} - echo "INSTALL_CC='gcc-10'" >> ${GITHUB_ENV}} - echo "INSTALL_CXX='g++-10'" >> ${GITHUB_ENV}} + echo CC="gcc-10" >> ${GITHUB_ENV} + echo CXX="g++-10" >> ${GITHUB_ENV} + echo INSTALL_CC="gcc-10" >> ${GITHUB_ENV}} + echo INSTALL_CXX="g++-10" >> ${GITHUB_ENV}} - name: Prepare environment (for cur gnu on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur') run: | - echo "CC='gcc-9'" >> ${GITHUB_ENV} - echo "CXX='g++-9'" >> ${GITHUB_ENV} + echo CC="gcc-9" >> ${GITHUB_ENV} + echo CXX="g++-9" >> ${GITHUB_ENV} - name: Prepare environment (for old gnu on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old') run: | - echo "CC='gcc-8'" >> ${GITHUB_ENV} - echo "CXX='g++-8'" >> ${GITHUB_ENV} + echo CC="gcc-8" >> ${GITHUB_ENV} + echo CXX="g++-8" >> ${GITHUB_ENV} - name: Prepare environment (for new clang on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='new') run: | - echo "CC='clang-10'" >> ${GITHUB_ENV} - echo "CXX='clang++-10'" >> ${GITHUB_ENV} + echo CC="clang-10" >> ${GITHUB_ENV} + echo CXX="clang++-10" >> ${GITHUB_ENV} - name: Prepare environment (for cur clang on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur') run: | - echo "CC='clang-9'" >> ${GITHUB_ENV} - echo "CXX='clang++-9'" >> ${GITHUB_ENV} + echo CC="clang-9" >> ${GITHUB_ENV} + echo CXX="clang++-9" >> ${GITHUB_ENV} - name: Prepare environment (for old clang on ubuntu-20.04) if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='old') run: | - echo "CC='clang-8'" >> ${GITHUB_ENV} - echo "CXX='clang++-8'" >> ${GITHUB_ENV} + echo CC="clang-8" >> ${GITHUB_ENV} + echo CXX="clang++-8" >> ${GITHUB_ENV} - name: Prepare environment (for new gnu on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new') run: | - echo "CC='gcc-9'" >> ${GITHUB_ENV} - echo "CXX='g++-9'" >> ${GITHUB_ENV} + echo CC="gcc-9" >> ${GITHUB_ENV} + echo CXX="g++-9" >> ${GITHUB_ENV} - name: Prepare environment (for cur gnu on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur') run: | - echo "CC='gcc-8'" >> ${GITHUB_ENV} - echo "CXX='g++-8'" >> ${GITHUB_ENV} + echo CC="gcc-8" >> ${GITHUB_ENV} + echo CXX="g++-8" >> ${GITHUB_ENV} - name: Prepare environment (for old gnu on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old') run: | - echo "CC='gcc-7'" >> ${GITHUB_ENV} - echo "CXX='g++-7'" >> ${GITHUB_ENV} + echo CC="gcc-7" >> ${GITHUB_ENV} + echo CXX="g++-7" >> ${GITHUB_ENV} - name: Prepare environment (for new clang on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='new') run: | - echo "CC='clang-9'" >> ${GITHUB_ENV} - echo "CXX='clang++-9'" >> ${GITHUB_ENV} + echo CC="clang-9" >> ${GITHUB_ENV} + echo CXX="clang++-9" >> ${GITHUB_ENV} - name: Prepare environment (for cur clang on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur') run: | - echo "CC='clang-8'" >> ${GITHUB_ENV} - echo "CXX='clang++-8'" >> ${GITHUB_ENV} + echo CC="clang-8" >> ${GITHUB_ENV} + echo CXX="clang++-8" >> ${GITHUB_ENV} - name: Prepare environment (for old clang on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='old') run: | - echo "CC='clang-6.0'" >> ${GITHUB_ENV} - echo "CXX='clang++-6.0'" >> ${GITHUB_ENV} - echo "CXXFLAGS='-stdlib=libc++'" >> ${GITHUB_ENV}} + echo CC="clang-6.0" >> ${GITHUB_ENV} + echo CXX="clang++-6.0" >> ${GITHUB_ENV} + echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}} - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | @@ -369,7 +369,7 @@ jobs: run: | brew install bison flex ${INSTALL_MEMCACHED} brew services stop memcached || true - echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached run: | if test -d memcached @@ -389,7 +389,7 @@ jobs: make -j2 make install cd .. - echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV} + echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV} fi - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) run: cmake -S . -B build