summaryrefslogtreecommitdiff
path: root/manualPorts/gnome-icon-theme
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
parentce6aa3ae61a72efbe02a97b692739893e42aa5a5 (diff)
downloadcrux-ports-5da6e7afb6137bc74bda83073dd5f8264f8c6e68.tar.xz
cleanup
Diffstat (limited to 'manualPorts/gnome-icon-theme')
-rwxr-xr-xmanualPorts/gnome-icon-theme/lastVersion.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/manualPorts/gnome-icon-theme/lastVersion.sh b/manualPorts/gnome-icon-theme/lastVersion.sh
new file mode 100755
index 0000000..471dad4
--- /dev/null
+++ b/manualPorts/gnome-icon-theme/lastVersion.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+curl -Ss 'http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme/' | \
+ 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/${ver}/" | \
+ tr '"' '\n' | \
+ grep -m1 '^gnome-icon-theme-[0-9.]\+\.tar\.xz$' && \
+ break
+ done | \
+ sed '
+ s/^gnome-icon-theme-\([0-9.]\+\)\.tar\.xz$/\1/
+ '