source: trunk/SRC/Tests/makeold.sh @ 378

Last change on this file since 378 was 114, checked in by smasson, 18 years ago

new compilation options (compile_opt idl2, strictarrsubs) in each routine

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/sh
2rm -f TestsOld/*.pro
3for i in tst_*.pro
4  do
5  new=$( basename $i .pro )
6  sed -e "/@update/d" \
7      -e "s/@cm_4mesh/@common/g" \
8      -e "s/@cm_4cal/@common/g" \
9      -e "s/@cm_4data/@common/g" \
10      -e "s/@cm_4ps/@common/g" \
11      -e "s/@cm_general/@common/g" \
12      -e "s/boxzoom/boite/g" \
13      -e "s/realcont/carte/g" \
14      -e "s/coast_thick/cont_thick/g" \
15      -e "s/def_key_periodic/def_key_periodique/g" \
16      -e "s/gridtype/grille/g" \
17      -e "s/zratio/hzsurht/g" \
18      -e "s/nofill/nocouleur/g" \
19      -e "s/small/petit/g" \
20      -e "s/small/petitdessin/g" \
21      -e "s/yxaspect/ysurx/g" \
22      -e "s/triangles_list/triangles/g" \
23      -e "s/tst_pltz$/tst_pltz_old/g" \
24      -e "s/tst_pltt$/tst_pltt_old/g" \
25      -e "s/tst_plt$/tst_plt_old/g" \
26      -e "s/tst_basic/tst_basic_old/g" \
27      $i > TestsOld/${new}_old.pro
28done
29
30cd TestsOld
31for i in $( egrep -il "^ *(pro|function) .*," *.pro )
32do
33  a=$( egrep -ih "^ *(pro|function) .*," $i )
34  b=${a%%,*}_old,${a#*,}
35  sed -e "s/${a}/${b}/" $i > tmp_$$
36  mv tmp_$$ $i
37done
Note: See TracBrowser for help on using the repository browser.