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

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. [Bernd: rebased for version 4.97.1]
  7. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  8. ---
  9. scripts/exim_install | 18 +++++++++---------
  10. 1 files changed, 9 insertions(+), 9 deletions(-)
  11. diff --git a/scripts/exim_install b/scripts/exim_install
  12. index 616ab3c..e68e7d5 100755
  13. --- a/scripts/exim_install
  14. +++ b/scripts/exim_install
  15. @@ -348,15 +348,15 @@ while [ $# -gt 0 ]; do
  16. else
  17. if ../scripts/newer ${name} ${BIN_DIRECTORY}/${name}; then
  18. - if [ -f ${BIN_DIRECTORY}/${name} ]; then
  19. - echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  20. - ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  21. - if [ $? -ne 0 ]; then
  22. - echo $com ""
  23. - echo $com "*** Exim installation ${ver}failed ***"
  24. - exit 1
  25. - fi
  26. - fi
  27. +# if [ -f ${BIN_DIRECTORY}/${name} ]; then
  28. +# echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  29. +# ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
  30. +# if [ $? -ne 0 ]; then
  31. +# echo $com ""
  32. +# echo $com "*** Exim installation ${ver}failed ***"
  33. +# exit 1
  34. +# fi
  35. +# fi
  36. echo ${CP} ${name} ${BIN_DIRECTORY}
  37. ${real} ${CP} ${name} ${BIN_DIRECTORY}
  38. if [ $? -ne 0 ]; then