[Xotcl] NSF 2.2.0 Windows build Patch

Marc Gutman marcg at activestate.com
Thu Mar 7 21:22:50 CET 2019


NSF Team,

I am submitting this patch for NSF 2.2.0 Windows builds.
It ensures that an INCLUDE_INSTALL_DIR exists before copying to it.
When the directory didn't exist I was getting xcopy errors during build.

Patch is below, and attached.
Thank You,
- Marc
ActiveState

>From 5711e78af40fbf326e6adb68d5ee35a7a55c3a90 Mon Sep 17 00:00:00 2001
From: icanhasmath <marcg at activestate.com>
Date: Wed, 6 Mar 2019 16:00:56 -0500
Subject: [PATCH] create-include-dir

---
 win/makefile.vc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/win/makefile.vc b/win/makefile.vc
index c17895e..1ab1fd0 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -537,6 +537,7 @@ install-binaries:
  @echo Installing binaries to '$(SCRIPT_INSTALL_DIR)'
  @if not exist "$(SCRIPT_INSTALL_DIR)" mkdir "$(SCRIPT_INSTALL_DIR)"
  @$(CPY) $(PRJLIB) "$(SCRIPT_INSTALL_DIR)" >NUL
+        @if not exist "$(INCLUDE_INSTALL_DIR)" mkdir
"$(INCLUDE_INSTALL_DIR)"
  @echo Installing header files to "$(INCLUDE_INSTALL_DIR)"
  @$(CPY) "$(GENERICDIR)\nsf.h" "$(INCLUDE_INSTALL_DIR)"
  @$(CPY) "$(GENERICDIR)\nsfInt.h" "$(INCLUDE_INSTALL_DIR)"
-- 
2.18.0


More information about the Xotcl mailing list