arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

zuper.init (720B)


      1 ##########################
      2 # Zuper Init
      3 
      4 # initialize globals only after sourcing everything
      5 # since zlibs may contain more variable declarations
      6 for _v in $vars; do
      7     typeset -h $_v
      8 done
      9 for _a in $arrs; do
     10     typeset -aU $_a
     11 done
     12 for _m in $maps; do
     13     typeset -A $_m
     14 done
     15 
     16 # reset defaults
     17 DEBUG=${DEBUG:-0}
     18 QUIET=${QUIET:-0}
     19 LOG=${LOG:-""}
     20 req=()
     21 freq=()
     22 last_act=()
     23 last_func=()
     24 last_notice=()
     25 tmpfiles=()
     26 config_section=()
     27 config_section_type=${config_section_type:-org-mode}
     28 
     29 option_subcommands[__empty]=""
     30 option_subcommands[__unknown]=""
     31 
     32 
     33 
     34 func "Zuper $zuper_version initialized"
     35 func "${#vars} global variables registered"
     36 func "${#arrs} global arrays registered"
     37 func "${#maps} global maps registered"
     38 
     39