Viktor Szakáts napsal(a):

Thanks. This looks fine to me, hbformat left the
uppercased names as .bak files.

What I don't understand is how hbformat found the *.PRG
extension where we looked for *.prg one. Anyway current
behavior is very good for us, since it accept extension
regardless of the case.

Can you test the 'patch -N -i dbu52.dif' (or dif53.dif)
command, if it finished successfully?

I start from beginning an log all steps, seem that EOL are not converted using hbformat
and strange that not reformated all files when are lowercase


Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

s...@siki:~/clipp/harbour/examples/dbu$ rm test_src/* 
s...@siki:~/clipp/harbour/examples/dbu$                 
s...@siki:~/clipp/harbour/examples/dbu$ cp ori_src/dbu* test_src/
s...@siki:~/clipp/harbour/examples/dbu$ cd test_src/
s...@siki:~/clipp/harbour/examples/dbu/test_src$ hbformat -lFCaseLow=yes -nEol=0 -lIndent=no -lCase=no -lSpaces=no *.prg                                            

Reformatting dbuview.prg
<.........................................>
s...@siki:~/clipp/harbour/examples/dbu/test_src$ convmv --upper --notest * 
Your Perl version has fleas #37757 #49830                                  
mv "./dbucopy.prg"      "./DBUCOPY.PRG"                                    
mv "./dbuedit.prg"      "./DBUEDIT.PRG"                                    
mv "./dbuhelp.prg"      "./DBUHELP.PRG"                                    
mv "./dbuindx.prg"      "./DBUINDX.PRG"                                    
mv "./dbunet.prg"       "./DBUNET.PRG"                                     
mv "./dbu.prg"  "./DBU.PRG"                                                
mv "./dbustru.prg"      "./DBUSTRU.PRG"                                    
mv "./dbuutil.prg"      "./DBUUTIL.PRG"                                    
mv "./dbuview.bak"      "./DBUVIEW.BAK"                                    
mv "./dbuview.prg"      "./DBUVIEW.PRG"                                    
Ready!                                                                     
s...@siki:~/clipp/harbour/examples/dbu/test_src$ hbformat -lFCaseLow=yes -nEol=0 -lIndent=no -lCase=no -lSpaces=no *.prg                                            

Reformatting ./DBUHELP.PRG
<................................................>
Reformatting ./DBUINDX.PRG                        
<.............................................>   
Reformatting ./DBUSTRU.PRG                        
<.........................................>       
Reformatting ./DBUVIEW.PRG                        
<.........................................>       
Reformatting ./DBUUTIL.PRG                        
<.........................................>       
Reformatting ./DBUCOPY.PRG                        
<.........................................>       
Reformatting ./DBU.PRG                            
<.........................................>       
Reformatting ./DBUEDIT.PRG                        
<.........................................>       
Reformatting ./DBUNET.PRG                         
<............................................>    
s...@siki:~/clipp/harbour/examples/dbu/test_src$ ls
DBU.bak      dbuedit.prg  dbuindx.prg  DBUSTRU.bak  DBUVIEW.bak
DBUCOPY.bak  DBUHELP.bak  DBUNET.bak   dbustru.prg  DBUVIEW.BAK
dbucopy.prg  dbuhelp.prg  dbunet.prg   DBUUTIL.bak  dbuview.prg
DBUEDIT.bak  DBUINDX.bak  dbu.prg      dbuutil.prg             
s...@siki:~/clipp/harbour/examples/dbu/test_src$ patch -N -i dbu52.difpatch: **** Can't open patch file dbu52.dif : No such file or directory
s...@siki:~/clipp/harbour/examples/dbu/test_src$ cp ../dbu52.dif .
s...@siki:~/clipp/harbour/examples/dbu/test_src$ patch -N -i dbu52.dif
patching file dbu.prg                                                 
Hunk #1 FAILED at 60.                                                 
Hunk #2 FAILED at 381.                                                
Hunk #3 FAILED at 398.                                                
3 out of 3 hunks FAILED -- saving rejects to file dbu.prg.rej         
patching file dbucopy.prg                                             
Hunk #1 FAILED at 104.                                                
Hunk #2 FAILED at 208.                                                
Hunk #3 FAILED at 735.                                                
Hunk #4 FAILED at 750.                                                
Hunk #5 FAILED at 813.                                                
Hunk #6 FAILED at 828.                                                
6 out of 6 hunks FAILED -- saving rejects to file dbucopy.prg.rej     
patching file dbuindx.prg                                             
Hunk #1 FAILED at 240.                                                
1 out of 1 hunk FAILED -- saving rejects to file dbuindx.prg.rej      
patching file dbustru.prg                                             
Hunk #1 FAILED at 811.                                                
Hunk #2 FAILED at 1215.                                               
Hunk #3 FAILED at 1236.                                               
Hunk #4 FAILED at 1320.                                               
4 out of 4 hunks FAILED -- saving rejects to file dbustru.prg.rej     
patching file dbuutil.prg                                             
Hunk #1 FAILED at 2152.
1 out of 1 hunk FAILED -- saving rejects to file dbuutil.prg.rej
patching file dbuview.prg
Hunk #1 FAILED at 1110.
Hunk #2 FAILED at 1141.
Hunk #3 FAILED at 2790.
Hunk #4 FAILED at 2799.
Hunk #5 FAILED at 2841.
Hunk #6 FAILED at 3010.
Hunk #7 FAILED at 3081.
7 out of 7 hunks FAILED -- saving rejects to file dbuview.prg.rej
s...@siki:~/clipp/harbour/examples/dbu/test_src$ dos2unix *
s...@siki:~/clipp/harbour/examples/dbu/test_src$ patch -N -i dbu52.dif
patching file dbu.prg
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 381.
Hunk #3 FAILED at 398.
3 out of 3 hunks FAILED -- saving rejects to file dbu.prg.rej
patching file dbucopy.prg
Hunk #3 succeeded at 741 (offset 6 lines).
Hunk #4 succeeded at 756 (offset 6 lines).
Hunk #5 succeeded at 819 (offset 6 lines).
Hunk #6 succeeded at 834 (offset 6 lines).
patching file dbuindx.prg
patching file dbustru.prg
patching file dbuutil.prg
patching file dbuview.prg
Hunk #3 succeeded at 2789 (offset -1 lines).
Hunk #4 succeeded at 2798 (offset -1 lines).
Hunk #5 succeeded at 2840 (offset -1 lines).
Hunk #6 succeeded at 3009 (offset -1 lines).
Hunk #7 succeeded at 3080 (offset -1 lines).
s...@siki:~/clipp/harbour/examples/dbu/test_src$

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to