Show
Ignore:
Timestamp:
17.02.2017 20:52:19 (3 years ago)
Author:
ak19
Message:

Removing commented out code related to older sed version of modifying httpd's win32.mak files. Current version uses awk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/packages/apache-httpd/adjust-winmak-files.bat

    r31425 r31428  
    6868    set NAMES= 
    6969    for /r "%~1" %%P in ("%~2") do ( 
    70          
    71         rem set /a "counter +=1" 
    72         rem echo counter: !counter! 
    7370         
    7471        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.      
    8773         
    8874        rem http://stackoverflow.com/questions/4462954/sed-increment-number 
     
    9480    ) 
    9581goto :eof 
    96  
    97 :: copy httpd-2.2.11\libhttpd.mak httpd-2.2.11\libhttpd.mak.tmp 
    98  
    99 :: Use batch cmd 'type' to view files without file locking and for viewing locked files: http://www.robvanderwoude.com/type.php 
    100 rem type httpd-2.2.11\libhttpd.mak.tmp | sed "s/tempfile/tempfile1/g" > httpd-2.2.11\libhttpd.mak 
    101 :: Alternatively: 
    102 rem sed "s/tempfile/tempfile%counter%/g" httpd-2.2.11\libhttpd.mak.tmp > httpd-2.2.11\libhttpd.mak 
    103  
    104 :: del httpd-2.2.11\libhttpd.mak.tmp