hangups-rs

Rust version of hangups (WIP) Currently Login not possible
git clone git://archive.git.mtrnord.blog/Nordgedanken/hangups-rs.git
Log | Files | Refs | README | LICENSE

install.sh (761B)


      1 set -ex
      2 
      3 main() {
      4     local target=
      5     if [ $TRAVIS_OS_NAME = linux ]; then
      6         target=x86_64-unknown-linux-musl
      7         sort=sort
      8     else
      9         target=x86_64-apple-darwin
     10         sort=gsort  # for `sort --sort-version`, from brew's coreutils.
     11     fi
     12 
     13     # This fetches latest stable release
     14     local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
     15                        | cut -d/ -f3 \
     16                        | grep -E '^v[0.1.0-9.]+$' \
     17                        | $sort --version-sort \
     18                        | tail -n1)
     19     curl -LSfs https://japaric.github.io/trust/install.sh | \
     20         sh -s -- \
     21            --force \
     22            --git japaric/cross \
     23            --tag $tag \
     24            --target $target
     25 }
     26 
     27 main