wok diff slitaz-tools/receipt @ rev 24069

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 11:01:20 2021 +0000 (2021-07-06)
parents 8f9abd79c4da
children db9d9cb3c164
line diff
     1.1 --- a/slitaz-tools/receipt	Fri Aug 21 15:07:47 2020 +0000
     1.2 +++ b/slitaz-tools/receipt	Tue Jul 06 11:01:20 2021 +0000
     1.3 @@ -23,6 +23,13 @@
     1.4  /etc/locale.conf
     1.5  /etc/slitaz/firewall.conf"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
    1.10 +	sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
    1.11 +	xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {