Files
nixpkgs/pkgs/by-name/po/postfix/update.sh
2026-07-27 22:14:18 +02:00

11 lines
431 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre2 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 https://postfix-mirror.horus-it.com/postfix-release/index.html |
pcre2grep -o1 '"official/postfix-([0-9.]+)[.]tar[.]gz">' | head -n1)"
update-source-version postfix "$new_version"