ObjFW  Check-in [0ad184c835]

Overview
Comment:.travis.yml: Use GNU sed on Linux, ed on macOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0ad184c835a4de3247c5650cc082b66440314dc763d3753947b3cc4e662ea00d
User & Date: js on 2020-04-16 20:08:08
Other Links: manifest | tags
Context
2020-04-18
01:39
Support for multiple strings in a TXT DNS record check-in: 78eb25bdc4 user: js tags: trunk
2020-04-16
20:08
.travis.yml: Use GNU sed on Linux, ed on macOS check-in: 0ad184c835 user: js tags: trunk
2020-04-13
19:09
.travis.yml: Add Precise, arm64, ppc64le and s390x check-in: 9203831c6a user: js tags: trunk
Changes

Modified .travis.yml from [010c219c65] to [9c5268203c].

   278    278   
   279    279     - if [ "$config" = "amigaos" ]; then
   280    280               wget -q https://franke.ms/download/amiga-gcc.tgz;
   281    281               tar -C / -xzf amiga-gcc.tgz;
   282    282       fi
   283    283   
   284    284   script:
   285         -  - sed -i 's/-DSTDOUT$/&_SIMPLE/' tests/Makefile
          285  +  # This needs to use ed on macOS, as it has no GNU sed, and sed on Linux, as
          286  +  # some Travis hosts have no ed.
          287  +  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
          288  +            echo -e '%s/-DSTDOUT$/&_SIMPLE/\nwq' | ed -s tests/Makefile;
          289  +    else
          290  +            sed -i 's/-DSTDOUT$/&_SIMPLE/' tests/Makefile;
          291  +    fi
   286    292   
   287    293     - build() {
   288    294               if ! git clean -fxd >/tmp/clean_log 2>&1; then
   289    295                       cat /tmp/clean_log;
   290    296                       exit 1;
   291    297               fi;
   292    298               echo ">> Configuring with $@";