diff options
author | Erich Eckner <git@eckner.net> | 2023-06-13 10:17:15 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-06-13 10:17:15 +0200 |
commit | 2f75efe0dcfeea72a2de7d3eff8fcd6c03d57265 (patch) | |
tree | 3784db613a92313b3984e9a1da123dc9a977dece | |
parent | e67a42ebbff49e44f23279266a50f1bd0c910da0 (diff) | |
download | crux-ports-2f75efe0dcfeea72a2de7d3eff8fcd6c03d57265.tar.xz |
automatically update more packages
-rwxr-xr-x | update.sh | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -3,12 +3,18 @@ if [ $# -eq 0 ]; then /usr/src/ports/lastVersion.sh \ | sed -n ' - s@ vs\. \S\+$@@ - T - s/ /\n/ + s@ \(upstream verfügbar, bei mir\|vs\.\) \(\S\+\)$@@ T p ' \ + | while read package new_version old_version; do + printf '%s\n' "${old_version}" "${new_version}" \ + | sort -V \ + | tail -n1 \ + | grep -qxF "${new_version}" \ + || continue + printf '%s\n' "${package}" "${new_version}" + done \ | parallel -j4 --max-args 2 "$0" {} \; exit $? fi |