biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / omnisharp-roslyn / updater.sh
blob10868fbd0992776f9960137404f435d0ad5f5d6a
1 #! /usr/bin/env nix-shell
2 #! nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
3 # shellcheck shell=bash
5 set -euo pipefail
7 cd "$(dirname "${BASH_SOURCE[0]}")"
9 new_version="$(curl -s "https://api.github.com/repos/OmniSharp/omnisharp-roslyn/releases?per_page=1" | jq -r '.[0].name')"
10 old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
12 if [[ "$new_version" == "$old_version" ]]; then
13 echo "Already up to date!"
14 exit 0
17 cd ../../../..
18 update-source-version omnisharp-roslyn "${new_version//v}"
20 $(nix-build -A omnisharp-roslyn.fetch-deps --no-out-link)