summaryrefslogtreecommitdiff
path: root/manualPorts/topal/lastVersion.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-25 20:25:42 +0100
committerErich Eckner <git@eckner.net>2019-03-25 20:25:42 +0100
commit8215510dc02361191b32ce55ec92c3115380dd08 (patch)
tree1fc5e661fcbda03686e029f1edbdb003b9085587 /manualPorts/topal/lastVersion.sh
parentbb700b441cb63277000260f83c4965adfc0bcb68 (diff)
downloadcrux-ports-8215510dc02361191b32ce55ec92c3115380dd08.tar.xz
topal: lastVersion.sh new
Diffstat (limited to 'manualPorts/topal/lastVersion.sh')
-rwxr-xr-xmanualPorts/topal/lastVersion.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/manualPorts/topal/lastVersion.sh b/manualPorts/topal/lastVersion.sh
new file mode 100755
index 0000000..f156744
--- /dev/null
+++ b/manualPorts/topal/lastVersion.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+curl -Ss 'https://zircon.org.uk/topal/' \
+ | sed '
+ s,^.*<a href="rel-\([0-9.]\+\)">rel-\1</a>.*$,\1,
+ t
+ d
+ ' \
+ | sort -V \
+ | tail -n1