Changeset 430 for trunk/SRC/Tests


Ignore:
Timestamp:
04/15/10 15:13:55 (14 years ago)
Author:
pinsard
Message:

indent shell scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Tests/makeold.sh

    r114 r430  
    22rm -f TestsOld/*.pro 
    33for i in tst_*.pro 
    4   do 
    5   new=$( basename $i .pro ) 
    6   sed -e "/@update/d" \ 
     4do 
     5   new=$( basename $i .pro ) 
     6   sed -e "/@update/d" \ 
    77      -e "s/@cm_4mesh/@common/g" \ 
    88      -e "s/@cm_4cal/@common/g" \ 
     
    3131for i in $( egrep -il "^ *(pro|function) .*," *.pro ) 
    3232do 
    33   a=$( egrep -ih "^ *(pro|function) .*," $i ) 
    34   b=${a%%,*}_old,${a#*,} 
    35   sed -e "s/${a}/${b}/" $i > tmp_$$ 
    36   mv tmp_$$ $i 
     33   a=$( egrep -ih "^ *(pro|function) .*," $i ) 
     34   b=${a%%,*}_old,${a#*,} 
     35   sed -e "s/${a}/${b}/" $i > tmp_$$ 
     36   mv tmp_$$ $i 
    3737done 
Note: See TracChangeset for help on using the changeset viewer.