mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] [patch] upgrade packages glib gtk


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] [patch] upgrade packages glib gtk
Date: Mon, 26 Apr 2010 19:11:39 +1000

On 26 April 2010 18:08, Mark Brand <address@hidden> wrote:
>
>> Looking at the releases on gtk.org, it seems they follow the
>> odd-unstable, even-release numbering system. There's been three
>> releases of glib 2.25 in the past week - maybe we should revert to the
>> 2.24 series, it's only just come out and they seem to have six month
>> release cycle?
>
> I have no objection. Maybe the update macro should be changed to ignore odd
> versions.

Just a pity about the time you spent on it. Update macros are hard,
but the below seem to work. I wonder if other gnome projects use the
same numbering system.

Cheers,

Tony

diff -r 9a3381646ef2 src/glib.mk
--- a/src/glib.mk       Mon Apr 26 00:13:02 2010 +0200
+++ b/src/glib.mk       Mon Apr 26 19:00:40 2010 +1000
@@ -15,8 +15,7 @@
 define $(PKG)_UPDATE
     wget -q -O- 'http://git.gnome.org/browse/glib/refs/tags' | \
     grep '<a href=' | \
-    $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
-    grep -v '^2\.22\.' | \
+    $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
     head -1
 endef

diff -r 9a3381646ef2 src/gtk.mk
--- a/src/gtk.mk        Mon Apr 26 00:13:02 2010 +0200
+++ b/src/gtk.mk        Mon Apr 26 19:00:40 2010 +1000
@@ -15,8 +15,7 @@
 define $(PKG)_UPDATE
     wget -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
     grep '<a href=' | \
-    $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
-    grep -v '^2\.18\.' | \
+    $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
     head -1
 endef




reply via email to

[Prev in Thread] Current Thread [Next in Thread]