summaryrefslogtreecommitdiff
path: root/manualPorts/xorg-xcalc/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/xorg-xcalc/lastVersion.sh')
-rwxr-xr-xmanualPorts/xorg-xcalc/lastVersion.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/manualPorts/xorg-xcalc/lastVersion.sh b/manualPorts/xorg-xcalc/lastVersion.sh
new file mode 100755
index 0000000..8fdd055
--- /dev/null
+++ b/manualPorts/xorg-xcalc/lastVersion.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+curl "https://www.x.org/archive/individual/app/" 2> /dev/null | \
+ tr "\"" "\n" | \
+ grep "^xcalc-.*\.tar\.bz2\$" | \
+ sed "s|^xcalc-\(.*\)\.tar\.bz2\$|\1|" | \
+ sort -V | \
+ tail -n1