You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Bill Stoddard <bi...@wstoddard.com> on 2002/05/23 18:42:57 UTC
libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Heads-up. I am backing out this patch to get compiles on NT 4.0 working again.
Bill
===================================================================
RCS file: /home/cvspublic/httpd-2.0/libhttpd.dsp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- httpd-2.0/libhttpd.dsp 2002/03/15 14:57:55 1.37
+++ httpd-2.0/libhttpd.dsp 2002/04/17 03:02:02 1.38
@@ -234,8 +234,7 @@
InputPath=.\modules\http\mod_core.h
".\include\mod_core.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_core.h
- copy .\modules\http\mod_core.h .\include\mod_core.h
+ xcopy /y .\modules\http\mod_core.h .\include
echo Created mod_core.h
# End Custom Build
@@ -247,8 +246,7 @@
InputPath=.\modules\http\mod_core.h
".\include\mod_core.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_core.h
- copy .\modules\http\mod_core.h .\include\mod_core.h
+ xcopy /y .\modules\http\mod_core.h .\include
echo Created mod_core.h
# End Custom Build
@@ -267,8 +265,7 @@
InputPath=.\modules\dav\main\mod_dav.h
".\include\mod_dav.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_dav.h
- copy .\modules\dav\main\mod_dav.h .\include\mod_dav.h
+ xcopy /y .\modules\dav\main\mod_dav.h .\include
echo Created mod_dav.h
# End Custom Build
@@ -280,8 +277,7 @@
InputPath=.\modules\dav\main\mod_dav.h
".\include\mod_dav.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_dav.h
- copy .\modules\dav\main\mod_dav.h .\include\mod_dav.h
+ xcopy /y .\modules\dav\main\mod_dav.h .\include
echo Created mod_dav.h
# End Custom Build
@@ -300,8 +296,7 @@
InputPath=.\modules\proxy\mod_proxy.h
".\include\mod_proxy.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_proxy.h
- copy .\modules\proxy\mod_proxy.h .\include\mod_proxy.h
+ xcopy /y .\modules\proxy\mod_proxy.h .\include
echo Created mod_proxy.h
# End Custom Build
@@ -313,8 +308,7 @@
InputPath=.\modules\proxy\mod_proxy.h
".\include\mod_proxy.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mod_proxy.h
- copy .\modules\proxy\mod_proxy.h .\include\mod_proxy.h
+ xcopy /y .\modules\proxy\mod_proxy.h .\include
echo Created mod_proxy.h
# End Custom Build
@@ -333,8 +327,7 @@
InputPath=.\server\mpm\winnt\mpm.h
".\include\mpm.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mpm.h
- copy .\server\mpm\winnt\mpm.h .\include\mpm.h
+ xcopy /y .\server\mpm\winnt\mpm.h .\include
echo Created mpm.h
# End Custom Build
@@ -346,8 +339,7 @@
InputPath=.\server\mpm\winnt\mpm.h
".\include\mpm.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mpm.h
- copy .\server\mpm\winnt\mpm.h .\include\mpm.h
+ xcopy /y .\server\mpm\winnt\mpm.h .\include
echo Created mpm.h
# End Custom Build
@@ -366,8 +358,7 @@
InputPath=.\server\mpm\winnt\mpm_default.h
".\include\mpm_default.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mpm_default.h
- copy .\server\mpm\winnt\mpm_default.h .\include\mpm_default.h
+ xcopy /y .\server\mpm\winnt\mpm_default.h .\include
echo Created mpm_default.h
# End Custom Build
@@ -379,8 +370,7 @@
InputPath=.\server\mpm\winnt\mpm_default.h
".\include\mpm_default.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\mpm_default.h
- copy .\server\mpm\winnt\mpm_default.h .\include\mpm_default.h
+ xcopy /y .\server\mpm\winnt\mpm_default.h .\include
echo Created mpm_default.h
# End Custom Build
@@ -399,8 +389,7 @@
InputPath=.\os\win32\os.h
".\include\os.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\os.h
- copy .\os\win32\os.h .\include\os.h
+ xcopy /y .\os\win32\os.h .\include
echo Created os.h
# End Custom Build
@@ -412,8 +401,7 @@
InputPath=.\os\win32\os.h
".\include\os.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- del .\include\os.h
- copy .\os\win32\os.h .\include\os.h
+ xcopy /y .\os\win32\os.h .\include
echo Created os.h
# End Custom Build
Re: [PATCH] Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Jerry Baker <je...@weirdness.com>.
Bill Stoddard wrote:
>
> This patch seems to work ok on both NT 4.0 and 2K. I don't know what's going on with the
> USERDEP change though... (from USERDEP__WIN32 to USERDEP_GEN_T).
Does MSVC really spawn a new shell for every command? I wouldn't be
surprised, but if not, the env CMDCOPY should only need to be set once.
--
Jerry Baker
[PATCH] Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Bill Stoddard <bi...@wstoddard.com>.
This patch seems to work ok on both NT 4.0 and 2K. I don't know what's going on with the
USERDEP change though... (from USERDEP__WIN32 to USERDEP_GEN_T).
Index: libhttpd.dsp
===================================================================
RCS file: /home/cvs/httpd-2.0/libhttpd.dsp,v
retrieving revision 1.38
diff -u -r1.38 libhttpd.dsp
--- libhttpd.dsp 17 Apr 2002 03:02:02 -0000 1.38
+++ libhttpd.dsp 23 May 2002 18:25:03 -0000
@@ -197,7 +197,7 @@
!IF "$(CFG)" == "libhttpd - Win32 Release"
# PROP Ignore_Default_Tool 1
-USERDEP__WIN32=".\include\os.h"
+USERDEP__GEN_T=".\include\os.h"
# Begin Custom Build - Generating test_char.h
InputPath=.\server\gen_test_char.exe
@@ -210,7 +210,7 @@
!ELSEIF "$(CFG)" == "libhttpd - Win32 Debug"
# PROP Ignore_Default_Tool 1
-USERDEP__WIN32=".\include\os.h"
+USERDEP__GEN_T=".\include\os.h"
# Begin Custom Build - Generating test_char.h
InputPath=.\server\gen_test_char.exe
@@ -234,8 +234,9 @@
InputPath=.\modules\http\mod_core.h
".\include\mod_core.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\http\mod_core.h .\include
- echo Created mod_core.h
+ set COPYCMD=/y
+ xcopy .\modules\http\mod_core.h .\include
+ echo Created mod_core.h
# End Custom Build
@@ -246,8 +247,9 @@
InputPath=.\modules\http\mod_core.h
".\include\mod_core.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\http\mod_core.h .\include
- echo Created mod_core.h
+ set COPYCMD=/y
+ xcopy .\modules\http\mod_core.h .\include
+ echo Created mod_core.h
# End Custom Build
@@ -265,8 +267,9 @@
InputPath=.\modules\dav\main\mod_dav.h
".\include\mod_dav.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\dav\main\mod_dav.h .\include
- echo Created mod_dav.h
+ set COPYCMD=/y
+ xcopy .\modules\dav\main\mod_dav.h .\include
+ echo Created mod_dav.h
# End Custom Build
@@ -277,8 +280,9 @@
InputPath=.\modules\dav\main\mod_dav.h
".\include\mod_dav.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\dav\main\mod_dav.h .\include
- echo Created mod_dav.h
+ set COPYCMD=/y
+ xcopy .\modules\dav\main\mod_dav.h .\include
+ echo Created mod_dav.h
# End Custom Build
@@ -296,8 +300,9 @@
InputPath=.\modules\proxy\mod_proxy.h
".\include\mod_proxy.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\proxy\mod_proxy.h .\include
- echo Created mod_proxy.h
+ set COPYCMD=/y
+ xcopy .\modules\proxy\mod_proxy.h .\include
+ echo Created mod_proxy.h
# End Custom Build
@@ -308,8 +313,9 @@
InputPath=.\modules\proxy\mod_proxy.h
".\include\mod_proxy.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\modules\proxy\mod_proxy.h .\include
- echo Created mod_proxy.h
+ set COPYCMD=/y
+ xcopy .\modules\proxy\mod_proxy.h .\include
+ echo Created mod_proxy.h
# End Custom Build
@@ -327,8 +333,9 @@
InputPath=.\server\mpm\winnt\mpm.h
".\include\mpm.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\server\mpm\winnt\mpm.h .\include
- echo Created mpm.h
+ set COPYCMD=/y
+ xcopy .\server\mpm\winnt\mpm.h .\include
+ echo Created mpm.h
# End Custom Build
@@ -339,8 +346,9 @@
InputPath=.\server\mpm\winnt\mpm.h
".\include\mpm.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\server\mpm\winnt\mpm.h .\include
- echo Created mpm.h
+ set COPYCMD=/y
+ xcopy .\server\mpm\winnt\mpm.h .\include
+ echo Created mpm.h
# End Custom Build
@@ -358,8 +366,9 @@
InputPath=.\server\mpm\winnt\mpm_default.h
".\include\mpm_default.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\server\mpm\winnt\mpm_default.h .\include
- echo Created mpm_default.h
+ set COPYCMD=/y
+ xcopy .\server\mpm\winnt\mpm_default.h .\include
+ echo Created mpm_default.h
# End Custom Build
@@ -370,8 +379,9 @@
InputPath=.\server\mpm\winnt\mpm_default.h
".\include\mpm_default.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\server\mpm\winnt\mpm_default.h .\include
- echo Created mpm_default.h
+ set COPYCMD=/y
+ xcopy .\server\mpm\winnt\mpm_default.h .\include
+ echo Created mpm_default.h
# End Custom Build
@@ -389,8 +399,9 @@
InputPath=.\os\win32\os.h
".\include\os.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\os\win32\os.h .\include
- echo Created os.h
+ set COPYCMD=/y
+ xcopy .\os\win32\os.h .\include
+ echo Created os.h
# End Custom Build
@@ -401,8 +412,9 @@
InputPath=.\os\win32\os.h
".\include\os.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- xcopy /y .\os\win32\os.h .\include
- echo Created os.h
+ set COPYCMD=/y
+ xcopy .\os\win32\os.h .\include
+ echo Created os.h
# End Custom Build
Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Bill Stoddard <bi...@wstoddard.com>.
> Bill Stoddard wrote:
> >
> > Here is the commit message for using xcopy:
> >
> > "Tired of 'foo.h not found' messages in the build. Checked ms's docs,
> > seems xcopy's /y arg goes all the way back to Win95. This shouldn't
> > introduce any hassles."
> >
> > I can live with the messages, but not the build break :-)
> >
> > Bill
>
> >From what I understand, xcopy automatically acted as if the /Y flag was
> specified in NT until Windows 2000. It was then that MS brought the
> command line for NT into line with that of Win 95/98/Me. So, setting
> COPYCMD=/Y shouldn't affect the behavior of NT 4 because it is not
> recognized and xcopy will act as if it had been specified anyway.
>
> --
> Jerry Baker
>
I'll try that and see what happens.
Bill
Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Jerry Baker <je...@weirdness.com>.
Bill Stoddard wrote:
>
> Here is the commit message for using xcopy:
>
> "Tired of 'foo.h not found' messages in the build. Checked ms's docs,
> seems xcopy's /y arg goes all the way back to Win95. This shouldn't
> introduce any hassles."
>
> I can live with the messages, but not the build break :-)
>
> Bill
>From what I understand, xcopy automatically acted as if the /Y flag was
specified in NT until Windows 2000. It was then that MS brought the
command line for NT into line with that of Win 95/98/Me. So, setting
COPYCMD=/Y shouldn't affect the behavior of NT 4 because it is not
recognized and xcopy will act as if it had been specified anyway.
--
Jerry Baker
Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 12:11 PM 5/23/2002, you wrote:
>Here is the commit message for using xcopy:
>
>"Tired of 'foo.h not found' messages in the build. Checked ms's docs,
> seems xcopy's /y arg goes all the way back to Win95. This shouldn't
> introduce any hassles."
I know... but Win95 was after NT 4.0's cmd processor. [Yes they succeeded
in substantially creating NT 4.0 before introducing the sad 9x series, wasting
millions of development hours on a now-dead OS line.]
The patch to foo around with COPYCMD [which does/doesn't work on 9x?
I have to check...] really looks like overkill. Bill; I can't find a
bootable NT4.0
partition at the moment, could you email me just the output of
copy /? > help
xcopy /? >> help
so I can review? [If they are sent to stderr, use 2> instead of >]
Thx,
Bill
Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Bill Stoddard <bi...@wstoddard.com>.
Here is the commit message for using xcopy:
"Tired of 'foo.h not found' messages in the build. Checked ms's docs,
seems xcopy's /y arg goes all the way back to Win95. This shouldn't
introduce any hassles."
I can live with the messages, but not the build break :-)
Bill
----- Original Message -----
From: "Jerry Baker" <je...@weirdness.com>
To: <de...@httpd.apache.org>
Sent: Thursday, May 23, 2002 1:05 PM
Subject: Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
> Bill Stoddard wrote:
> >
> > Heads-up. I am backing out this patch to get compiles on NT 4.0 working again.
>
> Is there some reason why xcopy is preferred over copy on Win32? If so,
> you can set COPYCMD=/Y. Windows NT should ignore this, but xcopy on
> platforms that support the /Y switch will pick it up.
>
> --
> Jerry Baker
>
Re: libhttpd.dsp use of xcopy /y breaks compile on NT 4.0
Posted by Jerry Baker <je...@weirdness.com>.
Bill Stoddard wrote:
>
> Heads-up. I am backing out this patch to get compiles on NT 4.0 working again.
Is there some reason why xcopy is preferred over copy on Win32? If so,
you can set COPYCMD=/Y. Windows NT should ignore this, but xcopy on
platforms that support the /Y switch will pick it up.
--
Jerry Baker