# 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
|
|
22 | 22 | -e "s/\<directed edges\>/_ar_c_label_s/g"\ |
23 | 23 | -e "s/UGraph/_Gr_aph_label_/g"\ |
24 | 24 | -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"\ |
26 | 26 | -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"\ |
28 | 28 | -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"\ |
31 | 30 | -e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\ |
32 | 31 | -e "s/Graph/_Digr_aph_label_/g"\ |
33 | 32 | -e "s/graph/_digr_aph_label_/g"\ |
34 | 33 | -e "s/UEdge/_Ed_ge_label_/g"\ |
35 | 34 | -e "s/u[Ee]dge/_ed_ge_label_/g"\ |
36 | 35 | -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\ |
37 | | -e "s/\<Edge\>/_Ar_c_label_/g"\ |
| 36 | -e "s/Edge\>/_Ar_c_label_/g"\ |
38 | 37 | -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"\ |
40 | 40 | -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"\ |
45 | 44 | -e "s/Edge/_Ar_c_label_/g"\ |
46 | 45 | -e "s/edge/_ar_c_label_/g"\ |
47 | 46 | -e "s/A[Nn]ode/_Re_d_label_/g"\ |
… |
… |
|
116 | 115 | -e "s/\<arcSubGraphAdaptor\>/filterEdges/g"\ |
117 | 116 | -e "s/\<DirGraphAdaptor\>/Orienter/g"\ |
118 | 117 | -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"\ |
119 | 123 | <$i > $TMP |
120 | 124 | mv $TMP $i |
121 | 125 | done |