wok diff openerp-client/receipt @ rev 25057
linux-libre: fix linux-libre-3.18.129-gnu-slitaz.config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 11:05:30 2022 +0000 (2022-06-06) |
parents | 505d1daeed6c |
children |
line diff
1.1 --- a/openerp-client/receipt Thu May 19 10:39:49 2022 +0000 1.2 +++ b/openerp-client/receipt Mon Jun 06 11:05:30 2022 +0000 1.3 @@ -15,6 +15,17 @@ 1.4 egenix-mx-base" 1.5 BUILD_DEPENDS="python python-dev pygtk egenix-mx-base" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + local a=$(wget -O - https://nightly.odoo.com/old/ 2>/dev/null | \ 1.11 + sed '/openerp-/!d;s|.*="||;s|/".*||' | sort -Vr | sed q) 1.12 + local b=$(wget -O - https://nightly.odoo.com/old/$a/ 2>/dev/null | \ 1.13 + sed '/href="[0-9]/!d;s|.*="||;s|/".*||' | sort -Vr | sed q) 1.14 + wget -O - https://nightly.odoo.com/old/$a/$b/ 2>/dev/null | \ 1.15 + sed '/openerp-client/!d;/tar/!d;s|.*-client-||;s|.tar.*||' 1.16 +} 1.17 + 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 {