COIN-OR::LEMON - Graph Library

Ticket #245: scripts2-b779c4dc7496.patch

File scripts2-b779c4dc7496.patch, 2.3 KB (added by Peter Kovacs, 15 years ago)
  • tools/lemon-0.x-to-1.x.sh

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1238135092 -3600
    # Node ID b779c4dc7496b1c6856e0994a4edc3a08b71c131
    # Parent  6b9c1f6eb1e59df76872f7ea0cca2793553acf64
    Fix and extend the migration script (#245)
    
    diff --git a/tools/lemon-0.x-to-1.x.sh b/tools/lemon-0.x-to-1.x.sh
    a b  
    2222        -e "s/\<directed edges\>/_ar_c_label_s/g"\
    2323        -e "s/UGraph/_Gr_aph_label_/g"\
    2424        -e "s/u[Gg]raph/_gr_aph_label_/g"\
    25         -e "s/\<Graph\>/_Digr_aph_label_/g"\
     25        -e "s/Graph\>/_Digr_aph_label_/g"\
    2626        -e "s/\<graph\>/_digr_aph_label_/g"\
    27         -e "s/\<Graphs\>/_Digr_aph_label_s/g"\
     27        -e "s/Graphs\>/_Digr_aph_label_s/g"\
    2828        -e "s/\<graphs\>/_digr_aph_label_s/g"\
    29         -e "s/_Graph/__Gr_aph_label_/g"\
    30         -e "s/\([Gg]\)raph\([a-z_]\)/_\1r_aph_label_\2/g"\
     29        -e "s/\([Gg]\)raph\([a-z]\)/_\1r_aph_label_\2/g"\
    3130        -e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\
    3231        -e "s/Graph/_Digr_aph_label_/g"\
    3332        -e "s/graph/_digr_aph_label_/g"\
    3433        -e "s/UEdge/_Ed_ge_label_/g"\
    3534        -e "s/u[Ee]dge/_ed_ge_label_/g"\
    3635        -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\
    37         -e "s/\<Edge\>/_Ar_c_label_/g"\
     36        -e "s/Edge\>/_Ar_c_label_/g"\
    3837        -e "s/\<edge\>/_ar_c_label_/g"\
    39         -e "s/\<Edges\>/_Ar_c_label_s/g"\
     38        -e "s/_edge\>/_ar_c_label_/g"\
     39        -e "s/Edges\>/_Ar_c_label_s/g"\
    4040        -e "s/\<edges\>/_ar_c_label_s/g"\
    41         -e "s/_Edge/__Ed_ge_label_/g"\
    42         -e "s/Edge\([a-z_]\)/_Ed_ge_label_\1/g"\
    43         -e "s/edge\([a-z_]\)/_ed_ge_label_\1/g"\
    44         -e "s/\([a-z_]\)edge/\1_ed_ge_label_/g"\
     41        -e "s/_edges\>/_ar_c_label_s/g"\
     42        -e "s/\([Ee]\)dge\([a-z]\)/_\1d_ge_label_\2/g"\
     43        -e "s/\([a-z]\)edge/\1_ed_ge_label_/g"\
    4544        -e "s/Edge/_Ar_c_label_/g"\
    4645        -e "s/edge/_ar_c_label_/g"\
    4746        -e "s/A[Nn]ode/_Re_d_label_/g"\
     
    116115        -e "s/\<arcSubGraphAdaptor\>/filterEdges/g"\
    117116        -e "s/\<DirGraphAdaptor\>/Orienter/g"\
    118117        -e "s/\<dirGraphAdaptor\>/orienter/g"\
     118        -e "s/\<LpCplex\>/CplexLp/g"\
     119        -e "s/\<MipCplex\>/CplexMip/g"\
     120        -e "s/\<LpGlpk\>/GlpkLp/g"\
     121        -e "s/\<MipGlpk\>/GlpkMip/g"\
     122        -e "s/\<LpSoplex\>/SoplexLp/g"\
    119123    <$i > $TMP
    120124    mv $TMP $i
    121125done