summaryrefslogtreecommitdiff
path: root/manualPorts/pidgin/lastVersion.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-06-15 20:45:50 +0200
committerErich Eckner <git@eckner.net>2023-06-15 20:45:50 +0200
commit598a0909693a922d181932071d1f6532a86a7cef (patch)
treee8af00fc6e632e528d159619316c89b3eee14ce6 /manualPorts/pidgin/lastVersion.sh
parent6bc2c23dd609e08c86ab947e51f1d6fb886d1d6d (diff)
downloadcrux-ports-598a0909693a922d181932071d1f6532a86a7cef.tar.xz
Revert "manualPorts/pidgin: removed - use upstream"
This reverts commit 323168b9e1a47cdc5aecc4532e08b0c8b030e443.
Diffstat (limited to 'manualPorts/pidgin/lastVersion.sh')
-rwxr-xr-xmanualPorts/pidgin/lastVersion.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/manualPorts/pidgin/lastVersion.sh b/manualPorts/pidgin/lastVersion.sh
new file mode 100755
index 0000000..2648b4b
--- /dev/null
+++ b/manualPorts/pidgin/lastVersion.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+curl -s 'https://sourceforge.net/projects/pidgin/files/Pidgin/' \
+| sed '
+ s@^.* href="/projects/pidgin/files/Pidgin/\([0-9.]\+\)/".*$@\1@
+ t
+ d
+' \
+| sort -Vr \
+| while read -r v; do
+ if curl -s 'https://sourceforge.net/projects/pidgin/files/Pidgin/'"${v}"'/' \
+ | grep -qF ' href="https://sourceforge.net/projects/pidgin/files/Pidgin/'"${v}"'/pidgin-'"${v}"'.tar.gz/download"'; then
+ printf '%s\n' "${v}"
+ break
+ fi
+done