summaryrefslogtreecommitdiff
path: root/manualPorts/pigz/lastVersion.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
committerErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
commit14a8f5d3c7889f2046a008b1b1dc29f485ebb359 (patch)
tree644ebb60f7155dd5c139d233857684fbcd8546e6 /manualPorts/pigz/lastVersion.sh
downloadcrux-ports-14a8f5d3c7889f2046a008b1b1dc29f485ebb359.tar.xz
initial commit
Diffstat (limited to 'manualPorts/pigz/lastVersion.sh')
-rwxr-xr-xmanualPorts/pigz/lastVersion.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/manualPorts/pigz/lastVersion.sh b/manualPorts/pigz/lastVersion.sh
new file mode 100755
index 0000000..be3583a
--- /dev/null
+++ b/manualPorts/pigz/lastVersion.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+curl "http://zlib.net/pigz/" 2> /dev/null | \
+ tr "\"" "\n" | \
+ grep "^pigz-.*\.tar\.gz\$" | \
+ sed "s/^pigz-\(.*\)\.tar\.gz\$/\1/" | \
+ sort -V | \
+ tail -n1