Fix line endings on DOS files that want CRLF preserved.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 15 Apr 2006 04:13:38 +0000 (04:13 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 15 Apr 2006 04:13:38 +0000 (04:13 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@1436 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/os_spawnv_fix.diff
src/script/scons.bat

index b8383466911c9903da4aa8219dfeb1fa289a0644..926f896c1f2080be27750ea934dbb01969f24c10 100644 (file)
@@ -1,83 +1,83 @@
-? dist/src/Mac/IDE scripts/Hold option to open a script
-? dist/src/Mac/IDE scripts/Insert file name
-? dist/src/Mac/IDE scripts/Insert folder name
-? dist/src/Mac/IDE scripts/Search Python Documentation
-? dist/src/Mac/IDE scripts/Hack/Remove .pyc files
-? dist/src/Mac/IDE scripts/Hack/Toolbox Assistant
-Index: dist/src/Modules/posixmodule.c
-===================================================================
-RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
-retrieving revision 2.213
-diff -c -c -r2.213 posixmodule.c
-*** dist/src/Modules/posixmodule.c     2001/12/03 20:41:00     2.213
---- dist/src/Modules/posixmodule.c     2001/12/05 00:52:58
-***************
-*** 1668,1674 ****
-  #ifdef HAVE_SPAWNV
-  static char posix_spawnv__doc__[] =
-  "spawnv(mode, path, args)\n\
-! Execute an executable path with arguments, replacing current process.\n\
-  \n\
-       mode: mode of process creation\n\
-       path: path of executable file\n\
---- 1668,1674 ----
-  #ifdef HAVE_SPAWNV
-  static char posix_spawnv__doc__[] =
-  "spawnv(mode, path, args)\n\
-! Execute the program 'path' in a new process.\n\
-  \n\
-       mode: mode of process creation\n\
-       path: path of executable file\n\
-***************
-*** 1717,1724 ****
-  
-       if (mode == _OLD_P_OVERLAY)
-               mode = _P_OVERLAY;
-       spawnval = _spawnv(mode, path, argvlist);
-! 
-       PyMem_DEL(argvlist);
-  
-       if (spawnval == -1)
---- 1717,1727 ----
-  
-       if (mode == _OLD_P_OVERLAY)
-               mode = _P_OVERLAY;
-+      
-+      Py_BEGIN_ALLOW_THREADS
-       spawnval = _spawnv(mode, path, argvlist);
-!      Py_END_ALLOW_THREADS
-!      
-       PyMem_DEL(argvlist);
-  
-       if (spawnval == -1)
-***************
-*** 1734,1740 ****
-  
-  static char posix_spawnve__doc__[] =
-  "spawnve(mode, path, args, env)\n\
-! Execute a path with arguments and environment, replacing current process.\n\
-  \n\
-       mode: mode of process creation\n\
-       path: path of executable file\n\
---- 1737,1743 ----
-  
-  static char posix_spawnve__doc__[] =
-  "spawnve(mode, path, args, env)\n\
-! Execute the program 'path' in a new process.\n\
-  \n\
-       mode: mode of process creation\n\
-       path: path of executable file\n\
-***************
-*** 1830,1836 ****
---- 1833,1843 ----
-  
-       if (mode == _OLD_P_OVERLAY)
-               mode = _P_OVERLAY;
-+ 
-+      Py_BEGIN_ALLOW_THREADS
-       spawnval = _spawnve(mode, path, argvlist, envlist);
-+      Py_END_ALLOW_THREADS
-+ 
-       if (spawnval == -1)
-               (void) posix_error();
-       else
+? dist/src/Mac/IDE scripts/Hold option to open a script\r
+? dist/src/Mac/IDE scripts/Insert file name\r
+? dist/src/Mac/IDE scripts/Insert folder name\r
+? dist/src/Mac/IDE scripts/Search Python Documentation\r
+? dist/src/Mac/IDE scripts/Hack/Remove .pyc files\r
+? dist/src/Mac/IDE scripts/Hack/Toolbox Assistant\r
+Index: dist/src/Modules/posixmodule.c\r
+===================================================================\r
+RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v\r
+retrieving revision 2.213\r
+diff -c -c -r2.213 posixmodule.c\r
+*** dist/src/Modules/posixmodule.c     2001/12/03 20:41:00     2.213\r
+--- dist/src/Modules/posixmodule.c     2001/12/05 00:52:58\r
+***************\r
+*** 1668,1674 ****\r
+  #ifdef HAVE_SPAWNV\r
+  static char posix_spawnv__doc__[] =\r
+  "spawnv(mode, path, args)\n\\r
+! Execute an executable path with arguments, replacing current process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+--- 1668,1674 ----\r
+  #ifdef HAVE_SPAWNV\r
+  static char posix_spawnv__doc__[] =\r
+  "spawnv(mode, path, args)\n\\r
+! Execute the program 'path' in a new process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+***************\r
+*** 1717,1724 ****\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
+       spawnval = _spawnv(mode, path, argvlist);\r
+! \r
+       PyMem_DEL(argvlist);\r
+  \r
+       if (spawnval == -1)\r
+--- 1717,1727 ----\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
++      \r
++      Py_BEGIN_ALLOW_THREADS\r
+       spawnval = _spawnv(mode, path, argvlist);\r
+!      Py_END_ALLOW_THREADS\r
+!      \r
+       PyMem_DEL(argvlist);\r
+  \r
+       if (spawnval == -1)\r
+***************\r
+*** 1734,1740 ****\r
+  \r
+  static char posix_spawnve__doc__[] =\r
+  "spawnve(mode, path, args, env)\n\\r
+! Execute a path with arguments and environment, replacing current process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+--- 1737,1743 ----\r
+  \r
+  static char posix_spawnve__doc__[] =\r
+  "spawnve(mode, path, args, env)\n\\r
+! Execute the program 'path' in a new process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+***************\r
+*** 1830,1836 ****\r
+--- 1833,1843 ----\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
++ \r
++      Py_BEGIN_ALLOW_THREADS\r
+       spawnval = _spawnve(mode, path, argvlist, envlist);\r
++      Py_END_ALLOW_THREADS\r
++ \r
+       if (spawnval == -1)\r
+               (void) posix_error();\r
+       else\r
index 015cfc63a9e8b4199b075b90f12961bcaefaf873..9e45a911113e3c20366a2090d0411e4a077904cb 100644 (file)
@@ -1,15 +1,15 @@
-@REM __COPYRIGHT__
-@REM __FILE__ __REVISION__ __DATE__ __DEVELOPER__
-@echo off
-if "%OS%" == "Windows_NT" goto WinNT
-REM for 9x/Me you better not have more than 9 args
-python -c "from os.path import join; import sys; sys.path = [ join(sys.prefix, 'Lib', 'site-packages', 'scons-__VERSION__'), join(sys.prefix, 'Lib', 'site-packages', 'scons'), join(sys.prefix, 'scons-__VERSION__'), join(sys.prefix, 'scons')] + sys.path; import SCons.Script; SCons.Script.main()" %1 %2 %3 %4 %5 %6 %7 %8 %9
-@REM no way to set exit status of this script for 9x/Me
-goto endscons
-:WinNT
-python -c "from os.path import join; import sys; sys.path = [ join(sys.prefix, 'Lib', 'site-packages', 'scons-__VERSION__'), join(sys.prefix, 'Lib', 'site-packages', 'scons'), join(sys.prefix, 'scons-__VERSION__'), join(sys.prefix, 'scons')] + sys.path; import SCons.Script; SCons.Script.main()" %*
-if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endscons
-if errorlevel 9009 echo you do not have python in your PATH
-@REM color 00 causes this script to exit with non-zero exit status
-if errorlevel 1 color 00
-:endscons
+@REM __COPYRIGHT__\r
+@REM __FILE__ __REVISION__ __DATE__ __DEVELOPER__\r
+@echo off\r
+if "%OS%" == "Windows_NT" goto WinNT\r
+REM for 9x/Me you better not have more than 9 args\r
+python -c "from os.path import join; import sys; sys.path = [ join(sys.prefix, 'Lib', 'site-packages', 'scons-__VERSION__'), join(sys.prefix, 'Lib', 'site-packages', 'scons'), join(sys.prefix, 'scons-__VERSION__'), join(sys.prefix, 'scons')] + sys.path; import SCons.Script; SCons.Script.main()" %1 %2 %3 %4 %5 %6 %7 %8 %9\r
+@REM no way to set exit status of this script for 9x/Me\r
+goto endscons\r
+:WinNT\r
+python -c "from os.path import join; import sys; sys.path = [ join(sys.prefix, 'Lib', 'site-packages', 'scons-__VERSION__'), join(sys.prefix, 'Lib', 'site-packages', 'scons'), join(sys.prefix, 'scons-__VERSION__'), join(sys.prefix, 'scons')] + sys.path; import SCons.Script; SCons.Script.main()" %*\r
+if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endscons\r
+if errorlevel 9009 echo you do not have python in your PATH\r
+@REM color 00 causes this script to exit with non-zero exit status\r
+if errorlevel 1 color 00\r
+:endscons\r