diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 15:40:51 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 15:40:51 +0100 |
commit | a85721403945bfe0f9b7e2a1bb2142daa4a51c2a (patch) | |
tree | 0b6e9c25adb15759173bf597ffb43150671ab379 /vars | |
parent | fabcdd011c4339ca5863262b4a6320a974ad188b (diff) | |
download | midipix_build-a85721403945bfe0f9b7e2a1bb2142daa4a51c2a.tar.bz2 midipix_build-a85721403945bfe0f9b7e2a1bb2142daa4a51c2a.tar.xz |
subr/check_updates.subr: preliminary support for less.
Diffstat (limited to 'vars')
-rw-r--r-- | vars/check_updates.vars | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vars/check_updates.vars b/vars/check_updates.vars index d7ad5bea..07ade3b8 100644 --- a/vars/check_updates.vars +++ b/vars/check_updates.vars @@ -52,6 +52,19 @@ pkg_infozip_check_updates() { pkg_infounzip_check_updates "${@}"; }; +pkg_less_check_updates() { + case "${1}" in + get_fnames) + cu_url_index="http://www.greenwoodsoftware.com/less/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '/The current released version is less-[0-9]\+/s/^.*The current released version is less-\([0-9]\+\).*$/less-\1/p')"; + ;; + get_version) + cu_fname_version="${cu_fname#less-}"; + ;; + esac; +}; + pkg_libgpg_error_check_updates() { case "${1}" in get_fnames) |