diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-17 19:39:22 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-17 19:42:34 +0100 |
commit | 0e8fdef802e0d420cff2528dbdf423d559d3b65b (patch) | |
tree | ac854289cf8a43d1e43d7b11bdd1bfcb7a70e3ca /subr | |
parent | 02175d8ad5011d39d1364c1214bb4353d6d87c55 (diff) | |
download | midipix_build-0e8fdef802e0d420cff2528dbdf423d559d3b65b.tar.bz2 midipix_build-0e8fdef802e0d420cff2528dbdf423d559d3b65b.tar.xz |
subr/check_updates.subr: preliminary support for libgpg_error and util_linux.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/check_updates.subr | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/subr/check_updates.subr b/subr/check_updates.subr index 62f3c53c..26a2c4a4 100644 --- a/subr/check_updates.subr +++ b/subr/check_updates.subr @@ -8,7 +8,7 @@ cpu_get_fnames() { *://github.com/*) _cpugf_uname="${cu_url#*/github.com/}"; _cpugf_uname="${_cpugf_uname%%/*}"; - _cpugf_pname="${cu_url#*/github.com/${_cpu_uname}/}"; + _cpugf_pname="${cu_url#*/github.com/${_cpugf_uname}/}"; _cpugf_pname="${_cpugf_pname%%/*}"; cu_url_index="https://github.com/${_cpugf_uname%%/*}/${_cpugf_pname%%/*}/releases/"; unset _cpu_uname _cpu_pname; @@ -17,6 +17,18 @@ cpu_get_fnames() { cu_fname_base="${cu_name}"; cu_fname_ext="${cu_fname#v${cu_version}.}"; ;; + */libgpg-error/*) + cu_url_index="${cu_url%/*}/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '/href="[^"]\+"/s/^.*href="\([^"]\+\)".*$/\1/p')"; + cu_fname_base="libgpg-error"; + ;; + */util-linux/*) + cu_fname_base="util_linux"; + cu_url_index="https://www.kernel.org/pub/linux/utils/util-linux/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- ${cu_url_index} |\ + sed -n '/href="[^"]\+"/{s/^.*href="\([^"]\+\)".*$/\1/;s/\/$//;p}')"; + ;; *) cu_url_index="${cu_url%/*}/"; cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ @@ -32,6 +44,8 @@ cpu_get_version() { case "${cu_url}" in *://github.com/*) cu_fname_version="${cu_fname}"; ;; + */util-linux/*) + cu_fname_version="${cu_fname#v}"; ;; *) if ! [ "${cu_fname#${cu_fname_base}-}" = "${cu_fname}" ]\ && ! [ "${cu_fname%.${cu_fname_ext}}" = "${cu_fname}" ]; then cu_fname_version="${cu_fname#${cu_fname_base}-}"; |