diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2018-11-14 12:39:23 +0000 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2018-11-14 13:28:27 +0000 |
commit | a56b46a7dde09d7cb24abb53598bd777b5c89577 (patch) | |
tree | d436e27b05710753c2e7e553a82d4335e8117c61 /configure | |
parent | 78727050424174fdee340190cdc458e491aaf18c (diff) |
Configuration stops if a dependency cannot be built
Until now, we used semicolons in Make's Call function definitions to build
the programs with GNU build system or CMake. Therefore, if any step of the
process failed, the rest would be ignorant to it and pass. Now, we use `&&'
to separate the different processing steps. In this way, we can be sure
that if any of them fails (during configuration, or building for example),
the pipeline will also stop and not continue to the next command (in the
same recipe).
Since the two Make Call functions were identical in the two
`dependencies-basic.mk' and `dependencies.mk', they are now in one file to
be imported in both.
This bug was found by Raul Infante Sainz.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -271,6 +271,7 @@ EOF ddir=$tmpddir echo " -- Using '$ddir'" fi + echo fi @@ -399,12 +400,21 @@ ln -s $(pwd)/reproduce/config/gnuastro .gnuastro # Build basic dependencies # ------------------------ tsec=10 -echo "----------------" -echo "Necessary reproduction pipeline dependencies will be built in $tsec sec." -echo -echo "NOTE: the built software will NOT BE INSTALLED on your system, they" -echo "are only for local usage by this reproduction pipeline (in '$bdir/dependencies/installed')" -echo +cat <<EOF + +------------------------- +Building dependencies ... +------------------------- + +Necessary dependency programs and libraries will be built in $tsec sec. + +NOTE: the built software will NOT BE INSTALLED on your system (no root +access is required). They are only for local usage by this reproduction +pipeline. They will be installed in: + +$bdir/dependencies/installed + +EOF sleep $tsec make -f reproduce/src/make/dependencies-basic.mk #-j2 |