diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 15:53:09 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 15:53:09 +0100 |
commit | e59c6946d1bca6a821b047a847bf84ec46da5cfd (patch) | |
tree | 77bd6adf8939065f88c4d22717b94e201857daa8 /vars | |
parent | 40a5fcbd66490cbf62cfac1b44d671ec107c9739 (diff) | |
download | midipix_build-e59c6946d1bca6a821b047a847bf84ec46da5cfd.tar.bz2 midipix_build-e59c6946d1bca6a821b047a847bf84ec46da5cfd.tar.xz |
subr/check_updates.subr: preliminary support for tmux.
Diffstat (limited to 'vars')
-rw-r--r-- | vars/check_updates.vars | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vars/check_updates.vars b/vars/check_updates.vars index 74e375d4..f8ca5a83 100644 --- a/vars/check_updates.vars +++ b/vars/check_updates.vars @@ -162,6 +162,17 @@ pkg_the_silver_searcher_check_updates() { esac; }; +pkg_tmux_check_updates() { + case "${1}" in + get_fnames) + cu_url_index="https://github.com/tmux/tmux/releases/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '/<a href="\/tmux\/tmux\/releases\/tag\//s/^.*<a href="\/tmux\/tmux\/releases\/tag\/\(.\+\)".*$/\1/p')"; + ;; + esac; +}; + + pkg_util_linux_check_updates() { case "${1}" in get_fnames) |