diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-30 23:33:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-30 23:33:40 -0700 |
commit | 13a85cccce2b5b7487c3fb4bb5b3fc55c393b754 (patch) | |
tree | 92184afb76458a8a973553fa5e15f8f89f36b26c | |
parent | c89270cf0d7c7b3f9c99075211a8178aca932f38 (diff) | |
download | txr-13a85cccce2b5b7487c3fb4bb5b3fc55c393b754.tar.gz txr-13a85cccce2b5b7487c3fb4bb5b3fc55c393b754.tar.bz2 txr-13a85cccce2b5b7487c3fb4bb5b3fc55c393b754.zip |
The cmdwrap sh.exe hack is no longer needed.
The Cygnal library uses cmd.exe for popen:
problem solved.
* Makefile (sh.exe): Target removed.
* cmdwrap.c: File removed.
* inst.nsi: Do not install sh.exe.
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | cmdwrap.c | 17 | ||||
-rw-r--r-- | inst.nsi | 1 |
3 files changed, 0 insertions, 23 deletions
@@ -468,8 +468,3 @@ conftest.clean: $(V)rm -f conftest$(EXE) conftest.[co] \ conftest2$(EXE) conftest[12].[oc] \ conftest.err conftest.syms - -# rule for building the Cygwin /bin/sh -> cmd.exe wrapper - -sh.exe: cmdwrap.c - $(CC) -O -o $@ $^ diff --git a/cmdwrap.c b/cmdwrap.c deleted file mode 100644 index 51e44b07..00000000 --- a/cmdwrap.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <process.h> -#include <stdlib.h> -#include <string.h> - -int main(int argc, char **argv) -{ - if (argc != 3) - return EXIT_FAILURE; - - if (strcmp(argv[1], "-c") != 0) - return EXIT_FAILURE; - - argv[0] = "c:/Windows/System32/cmd.exe"; - argv[1] = "/c"; - - return spawnvp(_P_WAIT, argv[0], (const char * const *) argv); -} @@ -47,7 +47,6 @@ section "TXR" SetOutPath $INSTDIR\txr\bin File txr.exe File txr-win.exe - File sh.exe File c:\cygwin\bin\cygwin1.dll File c:\cygwin\bin\cyggcc_s-1.dll SetOutPath $INSTDIR\txr\doc |