summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-06-13 10:17:15 +0200
committerErich Eckner <git@eckner.net>2023-06-13 10:17:15 +0200
commit2f75efe0dcfeea72a2de7d3eff8fcd6c03d57265 (patch)
tree3784db613a92313b3984e9a1da123dc9a977dece
parente67a42ebbff49e44f23279266a50f1bd0c910da0 (diff)
downloadcrux-ports-2f75efe0dcfeea72a2de7d3eff8fcd6c03d57265.tar.xz
automatically update more packages
-rwxr-xr-xupdate.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/update.sh b/update.sh
index f2162f9..ad05631 100755
--- a/update.sh
+++ b/update.sh
@@ -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