improved speed of version recognition for package gcc

This commit is contained in:
Volker Grabsch 2009-12-20 16:36:28 +01:00
parent e59d87a034
commit d642031dfb
1 changed files with 3 additions and 4 deletions

View File

@ -32,10 +32,9 @@ $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/gcc/gcc-$($(PKG)_VERSION)/$
$(PKG)_DEPS := pkg_config mingwrt mingwrt-dll w32api binutils gcc-gmp gcc-mpfr gcc-tdm gcc-pthreads
define $(PKG)_UPDATE
wget -q -O- 'http://gcc.gnu.org/viewcvs/tags/?sortby=date' | \
grep '<a name="gcc_' | \
$(SED) -n 's,.*<a name="gcc_\([0-9][^"]*\)_release".*,\1,p' | \
$(SED) 's,_,.,g' | \
wget -q -O- 'http://ftp.gnu.org/gnu/gcc/?C=M;O=D' | \
grep '<a href="gcc-' | \
$(SED) -n 's,.*<a href="gcc-\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef