summaryrefslogtreecommitdiff
path: root/manualPorts/gnome-icon-theme-symbolic
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 21:55:01 +0100
committerErich Eckner <git@eckner.net>2019-01-21 21:55:01 +0100
commit5da6e7afb6137bc74bda83073dd5f8264f8c6e68 (patch)
treed3854581c522e784d2d42da9e50f2d948e007d2b /manualPorts/gnome-icon-theme-symbolic
parentce6aa3ae61a72efbe02a97b692739893e42aa5a5 (diff)
downloadcrux-ports-5da6e7afb6137bc74bda83073dd5f8264f8c6e68.tar.xz
cleanup
Diffstat (limited to 'manualPorts/gnome-icon-theme-symbolic')
-rwxr-xr-xmanualPorts/gnome-icon-theme-symbolic/lastVersion.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/manualPorts/gnome-icon-theme-symbolic/lastVersion.sh b/manualPorts/gnome-icon-theme-symbolic/lastVersion.sh
new file mode 100755
index 0000000..ac014bb
--- /dev/null
+++ b/manualPorts/gnome-icon-theme-symbolic/lastVersion.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+curl -Ss 'http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme-symbolic/' | \
+ tr '<>' '\n' | \
+ sed '
+ s,^\([0-9.]\+\)/$,\1,
+ t
+ d
+ ' | \
+ sort -Vr | \
+ while read -r ver; do
+ curl -Ss "http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme-symbolic/${ver}/" | \
+ tr '"' '\n' | \
+ grep -m1 '^gnome-icon-theme-symbolic-[0-9.]\+\.tar\.xz$' && \
+ break
+ done | \
+ sed '
+ s/^gnome-icon-theme-symbolic-\([0-9.]\+\)\.tar\.xz$/\1/
+ '