changeset 5124:e4a0b11c5cc5

* src/bzip2.mk: windows, copy the bzip2.exe if there
author John Donoghue
date Wed, 17 Jul 2019 07:50:11 -0400
parents ed74d76248b7
children cd7689f3fcd8
files src/bzip2.mk
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/bzip2.mk	Tue Jul 16 15:54:05 2019 -0400
+++ b/src/bzip2.mk	Wed Jul 17 07:50:11 2019 -0400
@@ -36,7 +36,11 @@
     fi
 
     $(INSTALL) -d '$(3)$(HOST_BINDIR)'
-    $(INSTALL) '$(1)/bzip2' '$(3)$(HOST_BINDIR)/bzip2.exe' 
+    if [ -e '$(1)/bzip2.exe' ]; then \
+      $(INSTALL) '$(1)/bzip2.exe' '$(3)$(HOST_BINDIR)/bzip2.exe'; \
+    else \
+      $(INSTALL) '$(1)/bzip2' '$(3)$(HOST_BINDIR)/bzip2.exe'; \
+    fi
 
 endef
 else