diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-16 21:24:54 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-16 21:24:54 +0000 |
commit | 3e3034b08c5513291724faad33b2bffa131d28bf (patch) | |
tree | ac507f3d3657e4630085f18a615ce8e78591510d /bin | |
parent | 662e5c009e081cc482686eb3e3c17aeb6c29f57c (diff) | |
download | ptxdist-3e3034b08c5513291724faad33b2bffa131d28bf.tar.gz ptxdist-3e3034b08c5513291724faad33b2bffa131d28bf.tar.xz |
[ptxdist] do a "check_premake" before a get rule
check_premake will create the download dir, a missing one will procude
funny error messages during download.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10805 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index a8f67330b..c7d481663 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -659,17 +659,21 @@ check_if_selected() { # # runs the standard tests before calling into make: -# - check_config -# - check_dirs -# - check_compiler -# - check_deps # -check_premake_compiler() +check_premake() { check_config && check_dirs && - check_compiler && - check_deps || return + check_deps +} + +# +# runs the standard tests before calling into make + compiler check +# +check_premake_compiler() +{ + check_premake && + check_compiler } @@ -1364,11 +1368,11 @@ do_config() ptxd_kconfig "${config}" "${part}" "${file_dotconfig}" ;; *) - check_if_selected "${part}" || return + check_if_selected "${part}" && - ptxd_dialog_infobox "${PROMPT}Checking dependencies. This may take some seconds." - check_deps || return + ptxd_dialog_infobox "${PROMPT}Checking dependencies. This may take some seconds." && + check_premake && ptxd_make "${part}_${config}" ;; esac @@ -1798,14 +1802,13 @@ parse_second() echo exit 1 fi - check_config || return - check_deps + check_premake && ptxd_make_log export_src EXPORTDIR="${1}" exit ;; get) - check_config || return - check_deps + check_premake && + if [ $# -eq 0 ]; then ptxd_make_log get else |