diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/jicofo/update.sh')
-rwxr-xr-x | nixpkgs/pkgs/servers/jicofo/update.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/jicofo/update.sh b/nixpkgs/pkgs/servers/jicofo/update.sh new file mode 100755 index 000000000000..1b72920ac33b --- /dev/null +++ b/nixpkgs/pkgs/servers/jicofo/update.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p curl pup common-updater-scripts + +set -eu -o pipefail + +version="$(curl https://download.jitsi.org/stable/ | \ + pup 'a[href] text{}' | \ + awk -F'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \ + sort -Vu | \ + tail -n 1)" + +update-source-version jicofo "$version" |