diff src/binutils.mk @ 994:07e346dfcd76

improved version recognition of packages binutils and gcc
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 20 May 2010 22:38:49 +0200
parents 7bc91d496bb8
children 3443a9b9a415
line wrap: on
line diff
--- a/src/binutils.mk	Thu May 20 22:31:36 2010 +0200
+++ b/src/binutils.mk	Thu May 20 22:38:49 2010 +0200
@@ -14,10 +14,8 @@
 $(PKG)_DEPS     :=
 
 define $(PKG)_UPDATE
-    wget -q -O- 'http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/?cvsroot=src' | \
-    grep '<OPTION>binutils-' | \
-    $(SED) -n 's,.*binutils-\([0-9][0-9_]*\).*,\1,p' | \
-    $(SED) 's,_,.,g' | \
+    wget -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \
+    $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \
     head -1
 endef