wok diff h8300-gcc3/receipt @ rev 24694

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 12:06:14 2022 +0000 (2022-03-13)
parents 600949c94110
children d79ed38ace18
line diff
     1.1 --- a/h8300-gcc3/receipt	Sun Sep 29 10:32:18 2013 +0000
     1.2 +++ b/h8300-gcc3/receipt	Sun Mar 13 12:06:14 2022 +0000
     1.3 @@ -16,6 +16,13 @@
     1.4  DEPENDS="h8300-binutils"
     1.5  BUILD_DEPENDS="bison flex h8300-binutils"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \
    1.11 +	sed '/gcc-3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Configuration only needs included if we're in the build/wok environment
    1.15  if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
    1.16  	. $WOK/h8300-toolchain/stuff/h8300.conf