tools/lemon-0.x-to-1.x.sh
changeset 607 49a39bae067c
parent 489 4f1431aeef42
child 621 003367ffe66e
     1.1 --- a/tools/lemon-0.x-to-1.x.sh	Sun Mar 29 23:08:20 2009 +0200
     1.2 +++ b/tools/lemon-0.x-to-1.x.sh	Sun Mar 29 22:19:14 2009 +0100
     1.3 @@ -22,26 +22,25 @@
     1.4          -e "s/\<directed edges\>/_ar_c_label_s/g"\
     1.5          -e "s/UGraph/_Gr_aph_label_/g"\
     1.6          -e "s/u[Gg]raph/_gr_aph_label_/g"\
     1.7 -        -e "s/\<Graph\>/_Digr_aph_label_/g"\
     1.8 +        -e "s/Graph\>/_Digr_aph_label_/g"\
     1.9          -e "s/\<graph\>/_digr_aph_label_/g"\
    1.10 -        -e "s/\<Graphs\>/_Digr_aph_label_s/g"\
    1.11 +        -e "s/Graphs\>/_Digr_aph_label_s/g"\
    1.12          -e "s/\<graphs\>/_digr_aph_label_s/g"\
    1.13 -        -e "s/_Graph/__Gr_aph_label_/g"\
    1.14 -        -e "s/\([Gg]\)raph\([a-z_]\)/_\1r_aph_label_\2/g"\
    1.15 +        -e "s/\([Gg]\)raph\([a-z]\)/_\1r_aph_label_\2/g"\
    1.16          -e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\
    1.17          -e "s/Graph/_Digr_aph_label_/g"\
    1.18          -e "s/graph/_digr_aph_label_/g"\
    1.19          -e "s/UEdge/_Ed_ge_label_/g"\
    1.20          -e "s/u[Ee]dge/_ed_ge_label_/g"\
    1.21          -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\
    1.22 -        -e "s/\<Edge\>/_Ar_c_label_/g"\
    1.23 +        -e "s/Edge\>/_Ar_c_label_/g"\
    1.24          -e "s/\<edge\>/_ar_c_label_/g"\
    1.25 -        -e "s/\<Edges\>/_Ar_c_label_s/g"\
    1.26 +        -e "s/_edge\>/_ar_c_label_/g"\
    1.27 +        -e "s/Edges\>/_Ar_c_label_s/g"\
    1.28          -e "s/\<edges\>/_ar_c_label_s/g"\
    1.29 -        -e "s/_Edge/__Ed_ge_label_/g"\
    1.30 -        -e "s/Edge\([a-z_]\)/_Ed_ge_label_\1/g"\
    1.31 -        -e "s/edge\([a-z_]\)/_ed_ge_label_\1/g"\
    1.32 -        -e "s/\([a-z_]\)edge/\1_ed_ge_label_/g"\
    1.33 +        -e "s/_edges\>/_ar_c_label_s/g"\
    1.34 +        -e "s/\([Ee]\)dge\([a-z]\)/_\1d_ge_label_\2/g"\
    1.35 +        -e "s/\([a-z]\)edge/\1_ed_ge_label_/g"\
    1.36          -e "s/Edge/_Ar_c_label_/g"\
    1.37          -e "s/edge/_ar_c_label_/g"\
    1.38          -e "s/A[Nn]ode/_Re_d_label_/g"\
    1.39 @@ -116,6 +115,11 @@
    1.40          -e "s/\<arcSubGraphAdaptor\>/filterEdges/g"\
    1.41          -e "s/\<DirGraphAdaptor\>/Orienter/g"\
    1.42          -e "s/\<dirGraphAdaptor\>/orienter/g"\
    1.43 +        -e "s/\<LpCplex\>/CplexLp/g"\
    1.44 +        -e "s/\<MipCplex\>/CplexMip/g"\
    1.45 +        -e "s/\<LpGlpk\>/GlpkLp/g"\
    1.46 +        -e "s/\<MipGlpk\>/GlpkMip/g"\
    1.47 +        -e "s/\<LpSoplex\>/SoplexLp/g"\
    1.48      <$i > $TMP
    1.49      mv $TMP $i
    1.50  done