File: get-discord-rpc

package info (click to toggle)
openrct2 0.4.29%2Bds-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky
  • size: 104,244 kB
  • sloc: cpp: 676,472; ansic: 1,322; javascript: 716; xml: 640; sh: 439; python: 313; php: 34; makefile: 19
file content (16 lines) | stat: -rwxr-xr-x 485 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

if [[ $(uname) == "Linux" ]]; then
    basedir="$(readlink -f `dirname $0`/..)"
elif [[ $(uname) == "Darwin" ]]; then
    basedir="$(perl -MCwd=abs_path -le 'print abs_path readlink(shift);' `dirname $0`/..)"
else
    echo "Error: unknown OS: $(uname)"
    exit 1
fi
cd $basedir

git clone --depth 1 -b v3.4.0 https://github.com/discordapp/discord-rpc
git clone --depth 1 -b patch-1 https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson