summaryrefslogtreecommitdiff
path: root/manualPorts/ewemake/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/ewemake/lastVersion.sh')
-rwxr-xr-xmanualPorts/ewemake/lastVersion.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/ewemake/lastVersion.sh b/manualPorts/ewemake/lastVersion.sh
index 2805fc3..5f1c4c0 100755
--- a/manualPorts/ewemake/lastVersion.sh
+++ b/manualPorts/ewemake/lastVersion.sh
@@ -1,8 +1,11 @@
#!/bin/bash
-wget -O - "https://opensources.eckner.net/ls.php?ls=Make" 2> /dev/null | \
- tr "<>" "\n\n" | \
- grep "^Make-" | \
- sed "s|^Make-||" | \
+curl -Ss "https://git.eckner.net/Erich/Make/refs/" | \
+ tr '<>' '\n' | \
+ sed -n "
+ s,^a href='/Erich/Make/snapshot/Make-\([0-9.]\+\)\.tar\.xz'$,\1,
+ T
+ p
+ " | \
sort -V | \
tail -n1