summaryrefslogblamecommitdiff
path: root/ci/install.sh
blob: 8398598d486e6f4cac2f93671648629cdaeb0c3f (plain) (tree)



























                                     
                                                     
                                            
#!/bin/bash


function aptget_update {
    apt-get update
    if [ "$?" != 0 ]; then
        sleep 1s
        apt-get update
        if [ "$?" != 0 ]; then
            sleep 1s
            apt-get update
        fi
    fi
}

function aptget_install {
    apt-get -y -qq install $*
    if [ "$?" != 0 ]; then
        sleep 1s
        apt-get -y -qq install $*
        if [ "$?" != 0 ]; then
            sleep 2s
            apt-get -y -qq install $*
        fi
    fi
}

aptget_update
aptget_install gcc g++ gcc-5 g++-5 gcc-5-plugin-dev \
    make autoconf automake autopoint libtool