Changes between Version 1 and Version 2 of Ticket #2133, comment 4


Ignore:
Timestamp:
2018-11-12T16:27:40+01:00 (21 months ago)
Author:
smasson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2133, comment 4

    v1 v2  
    1 in action 2a, we used the following script to automatically modify all the calls to lbc_lnk:  
    2  
    3 {{{#!bash 
    4 set -u 
    5  
    6 for dd in $( find . -wholename "*/MY_SRC" ) $( find src -type d | grep -v svn ) 
    7 do 
    8     cd $dd 
    9     pwd 
    10     echo 
    11     for file in `grep -i " lbc_lnk" *| grep -i call | awk '{print $1}'|sed s/\:'.*'// |uniq` 
    12     do 
    13         routinename=` echo $file | sed s/\\\.'.*'//` 
    14         sed -e "s/ lbc_lnk\( *\)(\( *\)/ lbc_lnk\1(\2\'${routinename}\', /g" -e "s/ lbc_lnk_multi\( *\)(\( *\)/ lbc_lnk_multi\1(\2\'${routinename}\', /g"  $file > toto 
    15         mv toto $file 
    16         echo $file done 
    17     done 
    18     echo 
    19     cd - 
    20 done 
    21  
    22 }}}