tools/lemon-0.x-to-1.x.sh
changeset 396 b04e431907bc
parent 355 956a29f30887
child 371 0eec1736ff1d
child 377 a12eef1f82b2
equal deleted inserted replaced
2:33fe83322891 3:9e927b018965
    10 
    10 
    11 for i in $@
    11 for i in $@
    12 do
    12 do
    13     echo Update $i...
    13     echo Update $i...
    14     TMP=`mktemp`
    14     TMP=`mktemp`
    15     sed -e "s/undirected graph/_gr_aph_label_/g"\
    15     sed -e "s/\<undirected graph\>/_gr_aph_label_/g"\
    16         -e "s/undirected edge/_ed_ge_label_/g"\
    16         -e "s/\<undirected graphs\>/_gr_aph_label_s/g"\
       
    17         -e "s/\<undirected edge\>/_ed_ge_label_/g"\
       
    18         -e "s/\<undirected edges\>/_ed_ge_label_s/g"\
       
    19         -e "s/\<directed graph\>/_digr_aph_label_/g"\
       
    20         -e "s/\<directed graphs\>/_digr_aph_label_s/g"\
       
    21         -e "s/\<directed edge\>/_ar_c_label_/g"\
       
    22         -e "s/\<directed edges\>/_ar_c_label_s/g"\
    17         -e "s/UGraph/_Gr_aph_label_/g"\
    23         -e "s/UGraph/_Gr_aph_label_/g"\
    18         -e "s/u[Gg]raph/_gr_aph_label_/g"\
    24         -e "s/u[Gg]raph/_gr_aph_label_/g"\
    19         -e "s/\<Graph\>/_Digr_aph_label_/g"\
    25         -e "s/\<Graph\>/_Digr_aph_label_/g"\
    20         -e "s/\<graph\>/_digr_aph_label_/g"\
    26         -e "s/\<graph\>/_digr_aph_label_/g"\
    21         -e "s/\<Graphs\>/_Digr_aph_label_s/g"\
    27         -e "s/\<Graphs\>/_Digr_aph_label_s/g"\
    42         -e "s/B[Nn]ode/_Blu_e_label_/g"\
    48         -e "s/B[Nn]ode/_Blu_e_label_/g"\
    43         -e "s/A-[Nn]ode/_Re_d_label_/g"\
    49         -e "s/A-[Nn]ode/_Re_d_label_/g"\
    44         -e "s/B-[Nn]ode/_Blu_e_label_/g"\
    50         -e "s/B-[Nn]ode/_Blu_e_label_/g"\
    45         -e "s/a[Nn]ode/_re_d_label_/g"\
    51         -e "s/a[Nn]ode/_re_d_label_/g"\
    46         -e "s/b[Nn]ode/_blu_e_label_/g"\
    52         -e "s/b[Nn]ode/_blu_e_label_/g"\
       
    53         -e "s/\<UGRAPH_TYPEDEFS\([ \t]*([ \t]*\)typename[ \t]/TEMPLATE__GR_APH_TY_PEDE_FS_label_\1/g"\
       
    54         -e "s/\<GRAPH_TYPEDEFS\([ \t]*([ \t]*\)typename[ \t]/TEMPLATE__DIGR_APH_TY_PEDE_FS_label_\1/g"\
       
    55         -e "s/\<UGRAPH_TYPEDEFS\>/_GR_APH_TY_PEDE_FS_label_/g"\
       
    56         -e "s/\<GRAPH_TYPEDEFS\>/_DIGR_APH_TY_PEDE_FS_label_/g"\
    47         -e "s/_Digr_aph_label_/Digraph/g"\
    57         -e "s/_Digr_aph_label_/Digraph/g"\
    48         -e "s/_digr_aph_label_/digraph/g"\
    58         -e "s/_digr_aph_label_/digraph/g"\
    49         -e "s/_Gr_aph_label_/Graph/g"\
    59         -e "s/_Gr_aph_label_/Graph/g"\
    50         -e "s/_gr_aph_label_/graph/g"\
    60         -e "s/_gr_aph_label_/graph/g"\
    51         -e "s/_Ar_c_label_/Arc/g"\
    61         -e "s/_Ar_c_label_/Arc/g"\
    55         -e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\
    65         -e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\
    56         -e "s/_Re_d_label_/Red/g"\
    66         -e "s/_Re_d_label_/Red/g"\
    57         -e "s/_Blu_e_label_/Blue/g"\
    67         -e "s/_Blu_e_label_/Blue/g"\
    58         -e "s/_re_d_label_/red/g"\
    68         -e "s/_re_d_label_/red/g"\
    59         -e "s/_blu_e_label_/blue/g"\
    69         -e "s/_blu_e_label_/blue/g"\
       
    70         -e "s/_GR_APH_TY_PEDE_FS_label_/GRAPH_TYPEDEFS/g"\
       
    71         -e "s/_DIGR_APH_TY_PEDE_FS_label_/DIGRAPH_TYPEDEFS/g"\
    60         -e "s/DigraphToEps/GraphToEps/g"\
    72         -e "s/DigraphToEps/GraphToEps/g"\
    61         -e "s/digraphToEps/graphToEps/g"\
    73         -e "s/digraphToEps/graphToEps/g"\
    62         -e "s/\<DefPredMap\>/SetPredMap/g"\
    74         -e "s/\<DefPredMap\>/SetPredMap/g"\
    63         -e "s/\<DefDistMap\>/SetDistMap/g"\
    75         -e "s/\<DefDistMap\>/SetDistMap/g"\
    64         -e "s/\<DefReachedMap\>/SetReachedMap/g"\
    76         -e "s/\<DefReachedMap\>/SetReachedMap/g"\