gorgone
5 years ago
1 changed files with 75 additions and 50 deletions
@ -1,61 +1,86 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
_help_toolchain(){ |
_help_toolchain(){ |
||||
echo -e "$w_l toolchains :\n ------------$g_n"; |
printf "$w_l toolchains :\n ------------$g_n\n" |
||||
helpline1 "${AVAI_TCLIST[@]}"; |
helpline1 "${AVAI_TCLIST[@]}" |
||||
echo -e "\n"; |
printf "\n" |
||||
}; |
} |
||||
|
|
||||
helpline0(){ |
helpline0(){ |
||||
ll=0; |
ll=0 |
||||
echo -en " "; |
printf " "; |
||||
for s in "$@";do |
for s in "$@" |
||||
|
do |
||||
|
|
||||
if [ ! "$s" == "USE_SSL" ] \ |
if [ ! "$s" == "USE_SSL" ] \ |
||||
&& [ ! "$s" == "USE_MCA" ] \ |
&& [ ! "$s" == "USE_MCA" ] \ |
||||
&& [ ! "$s" == "USE_LIBUSB" ] \ |
&& [ ! "$s" == "USE_LIBUSB" ] \ |
||||
&& [ ! "$s" == "USE_CONFDIR" ]; |
&& [ ! "$s" == "USE_CONFDIR" ] |
||||
then |
then |
||||
ll=$((ll + (${#s} + 4))); |
ll=$((ll + (${#s} + 4))) |
||||
if [ "$ll" -lt "30" ];then |
if [ "$ll" -lt "30" ] |
||||
echo -en "$s(_off) "; |
then |
||||
|
printf "$s(_off) " |
||||
else |
else |
||||
echo -en "$s(_off)\n "; |
printf "$s(_off)\n " |
||||
ll=""; |
ll="" |
||||
fi; |
fi |
||||
fi; |
fi |
||||
done; |
|
||||
}; |
done |
||||
|
} |
||||
|
|
||||
helpline1(){ |
helpline1(){ |
||||
ll=0; |
ll=0 |
||||
echo -en " "; |
printf " " |
||||
for s in "$@";do |
for s in "$@" |
||||
ll=$((ll + (${#s} + 4))); |
do |
||||
if [ "$ll" -lt "45" ];then |
|
||||
echo -en "$s " ; |
ll=$((ll + (${#s} + 4))) |
||||
|
if [ "$ll" -lt "45" ] |
||||
|
then |
||||
|
printf "$s " |
||||
else |
else |
||||
echo -en "$s\n " ; |
printf "$s\n " |
||||
ll=""; |
ll="" |
||||
fi; |
fi |
||||
done; |
|
||||
}; |
done |
||||
_help(){ clear;s3logo; |
} |
||||
echo -e " --------------------------------------"; |
|
||||
echo -e " $txt_help1 $0 menu"; |
_help(){ |
||||
echo -e " $txt_help2"; |
clear |
||||
echo -e " --------------------------------------"; |
s3logo |
||||
echo -e "$w_l\n toolchains :\n ------------$g_n"; |
printf " --------------------------------------\n" |
||||
helpline1 "${AVAI_TCLIST[@]}"; |
printf " $txt_help1 $0 menu\n" |
||||
echo -e "$w_l\n simplebuild options :\n ---------------------$c_n"; |
printf " $txt_help2\n" |
||||
helpline1 "${s3opts[@]}";_wait; |
printf " --------------------------------------\n" |
||||
echo -e "$w_l config_cases:\n --------$c_n"; |
printf "$w_l\n toolchains :\n ------------$g_n\n" |
||||
helpline0 "${config_cases[@]}"; |
helpline1 "${AVAI_TCLIST[@]}\n" |
||||
echo -e "$w_l\n\n addons :\n --------$p_l"; |
|
||||
helpline0 "${SHORT_ADDONS[@]}";_wait; |
printf "$w_l\n simplebuild options :\n ---------------------$c_n\n" |
||||
echo -e "$w_l protocols :\n -----------$y_l"; |
helpline1 "${s3opts[@]}" |
||||
helpline0 "${SHORT_PROTOCOLS[@]}"; |
_wait |
||||
echo -e "$w_l\n readers :\n ---------$r_l"; |
|
||||
helpline0 "${SHORT_READERS[@]}";_wait; |
printf "\r$w_l config_cases:\n -------------$c_n\n" |
||||
echo -e "$w_l card_readers :\n --------------$b_l"; |
helpline0 "${config_cases[@]}" |
||||
helpline0 "${SHORT_CARD_READERS[@]}"; |
|
||||
echo -e "$w_l\n use_vars :\n --------$w_n"; |
printf "$w_l\n\n addons :\n --------$p_l\n" |
||||
helpline0 "${!USE_vars[@]}";_wait; |
helpline0 "${SHORT_ADDONS[@]}" |
||||
}; |
_wait |
||||
|
|
||||
|
printf "\n$w_l protocols :\n -----------$y_l\n" |
||||
|
helpline0 "${SHORT_PROTOCOLS[@]}" |
||||
|
|
||||
|
printf "$w_l\n readers :\n ---------$r_l\n" |
||||
|
helpline0 "${SHORT_READERS[@]}" |
||||
|
_wait |
||||
|
|
||||
|
printf "\n$w_l card_readers :\n --------------$b_l\n" |
||||
|
helpline0 "${SHORT_CARD_READERS[@]}" |
||||
|
|
||||
|
printf "$w_l\n use_vars :\n --------$w_n\n" |
||||
|
helpline0 "${!USE_vars[@]}" |
||||
|
_wait |
||||
|
_nl |
||||
|
} |
||||
|
Loading…
Reference in new issue