|
|
@ -3,7 +3,7 @@ |
|
|
|
#simplebuild_plugin tcupdate |
|
|
|
|
|
|
|
tcupdate(){ |
|
|
|
pversion="0.12.1"; |
|
|
|
pversion="0.12.2"; |
|
|
|
pname="s3.TUP"; |
|
|
|
pdesc="Plugin $pname v$pversion"; |
|
|
|
configname="$configdir/plugin_update_toolchain.config"; |
|
|
@ -170,8 +170,9 @@ tcupdate(){ |
|
|
|
[ "${!i}" == "0" ] && continue; |
|
|
|
libkey=$i; |
|
|
|
libname="$i"_name;libname=${!libname}; |
|
|
|
libdesc="$i"_desc;libdesc=${!libdesc}; |
|
|
|
libversion="$i"_version;libversion=${!libversion}; |
|
|
|
libdesc="$i"_desc;libdesc=${!libdesc}; |
|
|
|
[ ${#libdesc} -eq 0 ] && libdesc="$libname $libversion"; |
|
|
|
libcheck="$i"_check;libcheck=${!libcheck}; |
|
|
|
libversioncheck=$(echo "$libcheck" | awk '{printf $2}') |
|
|
|
libcheck=$(echo "$libcheck" | awk '{printf $1}') |
|
|
@ -185,9 +186,10 @@ tcupdate(){ |
|
|
|
|
|
|
|
#Preselection and formatting |
|
|
|
[ "$libversioncompare" == "=" ] && libtxtfmt="\Z2" || libtxtfmt=""; |
|
|
|
[ "$libversioncompare" == "<" ] && libtxtfmt="\Z1"; |
|
|
|
[ "$libversioncompare" == ">" ] && [ ${#libversioncurrent} -gt 0 ] && libselected="on" && libtxtfmt="\Z5" || libselected="off"; |
|
|
|
|
|
|
|
MENU_OPTIONS+=("$i" "$libname $libversion $([ $libversioncurrent ] && echo $libversioncompare) $libtxtfmt$(echo $libversioncurrent | sed -e 's/^$/ ---/g')\Zn" "$(echo $libselected)" "$([ $libname ] && echo "$libname $libversion: $liburl")");counter; |
|
|
|
MENU_OPTIONS+=("$i" "$libdesc""$(printf '%*s' $((24-${#libdesc})))""$libtxtfmt$([ $libversioncurrent ] && echo $libversioncompare) $(echo $libversioncurrent | sed -e 's/^$/ ---/g')\Zn" "$(echo $libselected)" "$([ $libname ] && echo "$libdesc: $liburl")");counter; |
|
|
|
|
|
|
|
# 0 key 1 desc 2 version 3 checkversion 4 checkfile 5 current version 6 url 7 tasks array |
|
|
|
lib=("$libkey" "$libname" "$libversion" "$libversioncheck" "$libcheck" "$libversioncurrent" "$liburl" "(${libtasks[*]@Q})"); |
|
|
|