diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-14 15:18:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-14 15:18:55 +0200 |
commit | 8901a7ca7a1fb1432a2a1dc39899e36e030ad315 (patch) | |
tree | 4abdf8b251ec60d1fab0a967461bc823f9d08f79 | |
parent | cec5b213da823bbdc56dcdd33115746fa08650e2 (diff) | |
download | bin-8901a7ca7a1fb1432a2a1dc39899e36e030ad315.zip bin-8901a7ca7a1fb1432a2a1dc39899e36e030ad315.tar.gz |
easy_e17.sh: move check_commands function
-rwxr-xr-x | easy_e17.sh | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/easy_e17.sh b/easy_e17.sh index 3e1d1c2..ef91428 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -38,11 +38,11 @@ packages_half="$efl_basic $bin_basic $e_modules_bin $e_modules_extra" packages_full="$efl_basic $bin_basic $e_modules_bin $e_modules_extra $efl_extra $bin_extra" packages=$packages_basic # default -cmd_src_test="svn info" -cmd_src_list="svn list -r" -cmd_src_checkout="svn checkout -r " -cmd_src_update_conflicts_solve="svn update --accept theirs-full -r" -cmd_src_update_conflicts_ask="svn update -r" +cmd_svn_test="svn info" +cmd_svn_list="svn list -r" +cmd_svn_checkout="svn checkout -r " +cmd_svn_update_conflicts_solve="svn update --accept theirs-full -r" +cmd_svn_update_conflicts_ask="svn update -r" src_mode="packages" ignore_dirs="devs DOCS E16 EXAMPLES TEST THEMES web" autogen_args="" # evas:--enable-gl-x11 @@ -247,25 +247,6 @@ function phase () # INIT ############################################################################# -function check_commands () -{ - max=15 - for dep in $1; do - cnt=${#dep} - echo -n "- '$dep' available " - while [ ! $cnt = $max ]; do - echo -n "." - cnt=$(($cnt+1)) - done - echo -n " " - if [ `type $dep &>/dev/null; echo $?` -ne 0 ]; then - echo -e "\033[1mNOT INSTALLED!\033[0m" - error "Command missing!" - else - echo "ok" - fi - done -} function define_os_vars () { @@ -479,6 +460,7 @@ function parse_args () # SETUP ############################################################################# + function check_script_version () { echo -e "\033[1m------------------------------\033[7m Check script version \033[0m\033[1m----------------------------\033[0m" @@ -503,6 +485,26 @@ function check_script_version () exit 0 } +function check_commands () +{ + max=15 + for dep in $1; do + cnt=${#dep} + echo -n "- '$dep' available " + while [ ! $cnt = $max ]; do + echo -n "." + cnt=$(($cnt+1)) + done + echo -n " " + if [ `type $dep &>/dev/null; echo $?` -ne 0 ]; then + echo -e "\033[1mNOT INSTALLED!\033[0m" + error "Command missing!" + else + echo "ok" + fi + done +} + function check_build_user () { echo -n "- build-user ................. " |