Changeset 31428 for main/trunk
- Timestamp:
- 2017-02-17T20:52:19+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/packages/apache-httpd/adjust-winmak-files.bat
r31425 r31428 68 68 set NAMES= 69 69 for /r "%~1" %%P in ("%~2") do ( 70 71 rem set /a "counter +=1"72 rem echo counter: !counter!73 70 74 71 set filename=%%~fP 75 echo file: Modifying win32.mak file !filename! to refer to unique tempfile .bat files to avoid race conditions. 76 77 rem echo Writing tempfile!counter! into 78 rem echo file: !filename! 79 80 rem copy "!filename!" "!filename!.tmp" 81 rem sed "s@tempfile[0-9]*\.bat@tempfile!counter!.bat@g" "!filename!.tmp" > "!filename!" 82 rem del "!filename!.tmp" 83 84 rem copy "!filename!" "!filename!.tmp" 85 rem sed "s@/MD@/MT@g" "!filename!.tmp" > "!filename!" 86 rem del "!filename!.tmp" 72 echo file: Modifying win32.mak file !filename! to refer to unique tempfile .bat files to avoid race conditions. 87 73 88 74 rem http://stackoverflow.com/questions/4462954/sed-increment-number … … 94 80 ) 95 81 goto :eof 96 97 :: copy httpd-2.2.11\libhttpd.mak httpd-2.2.11\libhttpd.mak.tmp98 99 :: Use batch cmd 'type' to view files without file locking and for viewing locked files: http://www.robvanderwoude.com/type.php100 rem type httpd-2.2.11\libhttpd.mak.tmp | sed "s/tempfile/tempfile1/g" > httpd-2.2.11\libhttpd.mak101 :: Alternatively:102 rem sed "s/tempfile/tempfile%counter%/g" httpd-2.2.11\libhttpd.mak.tmp > httpd-2.2.11\libhttpd.mak103 104 :: del httpd-2.2.11\libhttpd.mak.tmp
Note:
See TracChangeset
for help on using the changeset viewer.