Browse Source

cleanup main

pull/15/head
Gorgone 5 years ago
committed by GitHub
parent
commit
86ef667520
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 191
      s3

191
s3

@ -75,15 +75,17 @@ UPX="not_set";
OPENBOX=0;UFS916003=0;_verbose=""; OPENBOX=0;UFS916003=0;_verbose="";
_t1e="VG9vbGNoYWluLQ=="; _t1e="VG9vbGNoYWluLQ==";
_u1e="aHR0cDovL3N0cmVhbWJvYXJkLnR2L3diYjIvdHV0LXBpY3MvdG9vbGNoYWlucw=="; _u1e="aHR0cDovL3N0cmVhbWJvYXJkLnR2L3diYjIvdHV0LXBpY3MvdG9vbGNoYWlucw==";
cposx=0;cposy=0;off="_off";on="_on";pf="empty";file_exist="0";run="0"; cposx=0; cposy=0; off="_off"; on="_on"; pf="empty"; file_exist="0"; run="0";
s3cfg="$configdir/simplebuild.config";loadprofile="no";menucall="no"; s3cfg="$configdir/simplebuild.config";loadprofile="no";menucall="no";
# Compiler settings # Compiler settings
cc_warn="-W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition"; cc_warn="-W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition";
cc_opts="-ggdb -pipe -ffunction-sections -fdata-sections"; cc_opts="-ggdb -pipe -ffunction-sections -fdata-sections";
#default url #default url
trunkurl="http://www.streamboard.tv/svn/oscam/trunk";[ -f "$workdir/oscamsource.url" ] && source "$workdir/oscamsource.url"; trunkurl="http://www.streamboard.tv/svn/oscam/trunk";
#trunkurl="http://www.streamboard.tv/svn/oscam-addons/modern";[ -f "$workdir/oscamsource.url" ] && source "$workdir/oscamsource.url"; #trunkurl="http://www.streamboard.tv/svn/oscam-addons/modern";
[ -f "$workdir/oscamsource.url" ] && source "$workdir/oscamsource.url";
#load translationlist #load translationlist
cd "$tdir";langsupport=(*); cd "$tdir";langsupport=(*);
@ -102,8 +104,8 @@ else
fi; fi;
#initialize simplebuild #initialize simplebuild
initializeANSI; # load colors initializeANSI; # load colors
auto_langset; # echo "info $txt_load_ok"; auto_langset; # echo "info $txt_load_ok";
# check system ######################################################### # check system #########################################################
syscheck;[ ! "$sanity" == "1" ] && echo "sanity fail" && sleep 5 && bye; syscheck;[ ! "$sanity" == "1" ] && echo "sanity fail" && sleep 5 && bye;
@ -112,10 +114,10 @@ syscheck;[ ! "$sanity" == "1" ] && echo "sanity fail" && sleep 5 && bye;
_create_native_profile; # put native datas to toolchains and configs _create_native_profile; # put native datas to toolchains and configs
_get_config_con "$1"; # echo $addons;exit; _get_config_con "$1"; # echo $addons;exit;
_create_module_arrays; # fill module arrays _create_module_arrays; # fill module arrays
_fill_tc_array; # get # AVAI_TCLIST # INST_TCLIST # MISS_TCLIST _fill_tc_array; # get # AVAI_TCLIST # INST_TCLIST # MISS_TCLIST
read_s3cfg; # read simplebuild config read_s3cfg; # read simplebuild config
_set_dialog_types; # fill $gui vars _set_dialog_types; # fill $gui vars
_systype; # check used uname _systype; # check used uname
if [ ! -n "$1" ];then if [ ! -n "$1" ];then
[ "${s3cfg_vars[DIRECTMENU]}" == "1" ] && _dialog_checkout && exit; [ "${s3cfg_vars[DIRECTMENU]}" == "1" ] && _dialog_checkout && exit;
@ -125,107 +127,80 @@ else
for e in "${s3opts[@]}";do for e in "${s3opts[@]}";do
if [ "$e" == "$1" ];then if [ "$e" == "$1" ];then
case $e in case $e in
fix_me|\ fix_me|checkout|update_me|update_emu|svnrestore|enable_emu|upload_cam)
checkout|\ if [ ! -n "$2" ];then
update_me|\ eval "$e";
update_emu|\ else
svnrestore|\ eval "$e" "$2";
enable_emu|\ fi;exit;;
upload_cam) if [ ! -n "$2" ];then menu)
eval "$e"; if [ ! -n "$2" ];then
else _dialog_checkout;
eval "$e" "$2"; else
fi; _dialog_checkout "$2";
exit;; fi;;
menu) if [ ! -n "$2" ];then loadonly)
_dialog_checkout; if [ ! -n "$2" ];then
else _nl; clear; s3logo;
_dialog_checkout "$2"; echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l";
fi;; _help_toolchain; sleep 2; exit;
loadonly) if [ ! -n "$2" ];then else
_nl; for t in "${AVAI_TCLIST[@]}";do
clear; _tmp="$2";
s3logo; [ "$t" == "$2" ] && _load_toolchain "$2" && break;
echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l"; done;
_help_toolchain; if [ -f "$tc_dl" ];then
sleep 2; echo -e "$p_l\n\n toolchain for $_tmp loaded\n";
exit; else
else _nl; clear; s3logo;
for t in "${AVAI_TCLIST[@]}";do echo -e "$r_l toolchain missing/error\n";
_tmp="$2"; fi; exit;
[ "$t" == "$2" ] && _load_toolchain "$2" && break; fi;;
done; tccheck)
if [ -f "$tc_dl" ];then if [ ! -n "$2" ];then
echo -e "$p_l\n\n toolchain for $_tmp loaded\n"; _nl; clear; s3logo;
else echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l";
_nl; _help_toolchain;echo -e "$W"; sleep 2; exit;
clear; else
s3logo; for t in "${AVAI_TCLIST[@]}";do
echo -e "$r_l toolchain missing/error\n"; [ "$t" == "$2" ] && _toolchain_check "$2" && break;
fi; done;
exit; _nl; clear; s3logo;
fi;; echo -e "$r_l\n toolchain missing/error\n$w_l";
tccheck) if [ ! -n "$2" ];then _help_toolchain;echo -e "$W"; sleep 2; exit;
_nl; fi;;
clear; tcrepair)
s3logo; if [ ! -n "$2" ];then
echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l"; _nl; clear; s3logo;
_help_toolchain;echo -e "$W"; echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l";
sleep 2; _help_toolchain;echo -e "$W"; sleep 2; exit;
exit; else
else _nl;clear;_toolchain_repair "$2";sleep 2;exit;
for t in "${AVAI_TCLIST[@]}";do fi;;
[ "$t" == "$2" ] && _toolchain_check "$2" && break; upload)
done; if [ ! -n "$2" ];then
_nl; _nl; clear; s3logo;
clear; echo -e "$r_l\n $txt_error: $txt_parameter $txt_missing""$w_l";
s3logo; menucall="yes"; ssh_profiles;
echo -e "$r_l\n toolchain missing/error\n$w_l"; else
_help_toolchain;echo -e "$W"; upload_cam "$2";
sleep 2; fi; exit;;
exit;
fi;;
tcrepair) if [ ! -n "$2" ];then
_nl;
clear;
s3logo;
echo -e "$r_l\n $txt_error: toolchain $txt_parameter $txt_missing\n""$w_l";
_help_toolchain;echo -e "$W";
sleep 2;
exit;
else
_nl;clear;_toolchain_repair "$2";sleep 2;exit;
fi;;
upload) if [ ! -n "$2" ];then
_nl;
clear;
s3logo;
echo -e "$r_l\n $txt_error: $txt_parameter $txt_missing""$w_l";
menucall="yes";
ssh_profiles;
else
upload_cam "$2";
fi;
exit;;
syscheck) syscheck)
syscheck silent $2; syscheck silent $2; exit;;
exit;; tedit)
tedit) if [ -n "$2" ];then if [ -n "$2" ];then
for telement in ${INST_TCLIST[@]};do for telement in ${INST_TCLIST[@]};do
if [ "$telement" == "$2" ];then if [ "$telement" == "$2" ];then
tedit $2; tedit $2; exit;
exit;
fi;
done;
clear;
s3logo;
echo -e $w_l"\n $2 toolchain not installed\n"$W;
fi; fi;
exit;; done;
help) _help; clear; s3logo; echo -e $w_l"\n $2 toolchain not installed\n"$W;
exit;; fi; exit;;
*) shift && eval "$e" "$@"; #Remove the first command line argument and pass the remaining ones to the plugin help)
exit;; _help; exit;;
*)
shift && eval "$e" "$@"; #Remove the first command line argument and pass the remaining ones to the plugin
exit;;
esac; esac;
fi; fi;
done; done;

Loading…
Cancel
Save