bandwhich: 0.23.0 -> 0.23.1; move to by-name; nixfmt; useFetchCargoVendor (#356934)
[NixPkgs.git] / pkgs / servers / mail / postfix / update.sh
blobeacb548bc0029efdf68701b69fa68cb40fafcfef
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl pcre common-updater-scripts
4 set -eu -o pipefail
6 # Expect the text in format of '<a href="official/postfix-3.7.4.tar.gz">Source code</a> |'
7 # Stable release goes first.
8 new_version="$(curl -s http://cdn.postfix.johnriley.me/mirrors/postfix-release/index.html |
9 pcregrep -o1 '"official/postfix-([0-9.]+)[.]tar[.]gz">' | head -n1)"
10 update-source-version postfix "$new_version"