Changeset 2974


Ignore:
Timestamp:
Apr 5, 2020 8:34:11 PM (3 months ago)
Author:
unxusr
Message:

gcc 9 and escape sequences

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2973 r2974  
    3232        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-8 90
    3333    - os: linux
    34       dist: bionic
     34      dist: precise
    3535      env: BUILD_STATIC=false
    3636      addons:
    3737        apt:
     38          sources:
     39            - sourceline: 'ppa:ubuntu-toolchain-r/test'
    3840          packages:
    39             - gfortran
    40             - libgfortran-8-dev
     41            - gcc-9
     42            - g++-9
     43            - gfortran-9
     44            - libgfortran-9-dev
    4145            - liblapack-dev
     46      install:
     47        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
     48        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
     49        - sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90
     50        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 90
    4251    - os: linux
    4352      dist: bionic
     
    103112      echo "#! /bin/sh"
    104113      echo "# Wrapper to launch CBC and set the library path in Linux" > bin/cbc
    105       echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/cbc
     114      echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"\$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/cbc
    106115      echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/cbc
    107116      echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/cbc
    108117      echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/cbc
    109118      echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/cbc
    110       echo "${SCRIPTPATH}/cbc.bin \$@" >> bin/cbc
     119      echo "\${SCRIPTPATH}/cbc.bin \$@" >> bin/cbc
    111120      echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/cbc
    112121      echo "exit \$?" >> bin/cbc
     
    121130      echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/clp
    122131      echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/clp
    123       echo "\${SCRIPTPATH}/clp.bin $\@" >> bin/clp
     132      echo "\${SCRIPTPATH}/clp.bin \$@" >> bin/clp
    124133      echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/clp
    125134      echo "exit \$?" >> bin/clp
Note: See TracChangeset for help on using the changeset viewer.