summaryrefslogtreecommitdiff
path: root/manualPorts/barcode
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/barcode')
-rwxr-xr-xmanualPorts/barcode/lastVersion.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/manualPorts/barcode/lastVersion.sh b/manualPorts/barcode/lastVersion.sh
new file mode 100755
index 0000000..ce31201
--- /dev/null
+++ b/manualPorts/barcode/lastVersion.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+curl -Ss 'https://ftp.gnu.org/gnu/barcode/' \
+| sed '
+ s@^.*>barcode-\([0-9.]\+\)\.tar\.xz<.*$@\1@
+ t
+ d
+' \
+| sort -V \
+| tail -n1