depot/third_party/nixpkgs/pkgs/servers/mail/postfix/update.sh
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

10 lines
433 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre common-updater-scripts
set -eu -o pipefail
# Expect the text in format of '<a href="official/postfix-3.7.4.tar.gz">Source code</a> |'
# Stable release goes first.
new_version="$(curl -s http://cdn.postfix.johnriley.me/mirrors/postfix-release/index.html |
pcregrep -o1 '"official/postfix-([0-9.]+)[.]tar[.]gz">' | head -n1)"
update-source-version postfix "$new_version"