This solves a problem in issue esm-tools/esm_tools#77.
Recompilation of ECHAM was successful, but if a binary existed in the bin folder (i.e. echam-6.3.04p1/bin/echam6), the following lines will find it out and avoid entering in the if that builds the command for copying the binary from the src to the bin folder:
This was solved by checking if there is already a rm -f command in the command_list and, if that exists, it means that the toplevel_bin_path file is going to be deleted and and the if that copies the binary is allowed.
This solves a problem in issue esm-tools/esm_tools#77.
Recompilation of ECHAM was successful, but if a binary existed in the bin folder (i.e.
echam-6.3.04p1/bin/echam6
), the following lines will find it out and avoid entering in theif
that builds the command for copying the binary from thesrc
to thebin
folder:This was solved by checking if there is already a
rm -f
command in thecommand_list
and, if that exists, it means that thetoplevel_bin_path
file is going to be deleted and and theif
that copies the binary is allowed.