0002-Don-t-make-backup-copies-of-installed-files.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. If exim had already been installed, the install script makes backup
  2. copies of the pre-existing executables with a ".0" suffix.
  3. This leads to useless duplicated files on the target, so disable this
  4. piece of code.
  5. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
  6. ---
  7. scripts/exim_install | 18 +++++++++---------
  8. 1 files changed, 9 insertions(+), 9 deletions(-)
  9. diff --git a/scripts/exim_install b/scripts/exim_install
  10. index 616ab3c..e68e7d5 100755
  11. --- a/scripts/exim_install
  12. +++ b/scripts/exim_install
  13. @@ -344,15 +344,15 @@ while [ $# -gt 0 ]; do
  14. else
  15. if ../scripts/newer ${name} ${BIN_DIRECTORY}/${name}; then
  16. - if [ -f ${BIN_DIRECTORY}/${name} ]; then
  17. - echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  18. - ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  19. - if [ $? -ne 0 ]; then
  20. - echo $com ""
  21. - echo $com "*** Exim installation ${ver}failed ***"
  22. - exit 1
  23. - fi
  24. - fi
  25. +# if [ -f ${BIN_DIRECTORY}/${name} ]; then
  26. +# echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  27. +# ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  28. +# if [ $? -ne 0 ]; then
  29. +# echo $com ""
  30. +# echo $com "*** Exim installation ${ver}failed ***"
  31. +# exit 1
  32. +# fi
  33. +# fi
  34. echo ${CP} ${name} ${BIN_DIRECTORY}
  35. ${real} ${CP} ${name} ${BIN_DIRECTORY}
  36. if [ $? -ne 0 ]; then