perlPackages.NetAsyncWebSocket: 0.13 -> 0.14 (#352432)
[NixPkgs.git] / pkgs / tools / filesystems / ssdfs-utils / update.sh
blobb30d7bd3357c3a51602d852b8e15bb12e86a8468
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl gnugrep common-updater-scripts
3 set -euo pipefail
5 owner=dubeyko
6 repo=ssdfs-tools
8 version="$(curl --silent https://raw.githubusercontent.com/${owner}/${repo}/master/configure.ac | \
9 grep 'AC_INIT(ssdfs' | \
10 egrep -o '[0-9\.]{3,}')"
12 rev=$(curl -s -H "Accept: application/vnd.github.VERSION.sha" https://api.github.com/repos/${owner}/${repo}/commits/master)
14 update-source-version ssdfs-utils "$version" --rev="$rev"