author | Alpar Juttner <alpar@cs.elte.hu> |
Tue, 02 Dec 2008 10:30:52 +0000 | |
changeset 407 | e22fc10ab6f1 |
parent 359 | 0eec1736ff1d |
parent 365 | a12eef1f82b2 |
child 466 | 4f1431aeef42 |
permissions | -rwxr-xr-x |
alpar@305 | 1 |
#!/bin/bash |
alpar@305 | 2 |
|
alpar@305 | 3 |
set -e |
alpar@305 | 4 |
|
alpar@305 | 5 |
if [ $# -eq 0 -o x$1 = "x-h" -o x$1 = "x-help" -o x$1 = "x--help" ]; then |
kpeter@323 | 6 |
echo "Usage:" |
kpeter@323 | 7 |
echo " $0 source-file(s)" |
kpeter@323 | 8 |
exit |
alpar@305 | 9 |
fi |
alpar@305 | 10 |
|
kpeter@323 | 11 |
for i in $@ |
kpeter@323 | 12 |
do |
kpeter@323 | 13 |
echo Update $i... |
kpeter@323 | 14 |
TMP=`mktemp` |
kpeter@344 | 15 |
sed -e "s/\<undirected graph\>/_gr_aph_label_/g"\ |
kpeter@344 | 16 |
-e "s/\<undirected graphs\>/_gr_aph_label_s/g"\ |
kpeter@344 | 17 |
-e "s/\<undirected edge\>/_ed_ge_label_/g"\ |
kpeter@344 | 18 |
-e "s/\<undirected edges\>/_ed_ge_label_s/g"\ |
kpeter@344 | 19 |
-e "s/\<directed graph\>/_digr_aph_label_/g"\ |
kpeter@344 | 20 |
-e "s/\<directed graphs\>/_digr_aph_label_s/g"\ |
kpeter@344 | 21 |
-e "s/\<directed edge\>/_ar_c_label_/g"\ |
kpeter@344 | 22 |
-e "s/\<directed edges\>/_ar_c_label_s/g"\ |
kpeter@323 | 23 |
-e "s/UGraph/_Gr_aph_label_/g"\ |
kpeter@343 | 24 |
-e "s/u[Gg]raph/_gr_aph_label_/g"\ |
kpeter@343 | 25 |
-e "s/\<Graph\>/_Digr_aph_label_/g"\ |
kpeter@343 | 26 |
-e "s/\<graph\>/_digr_aph_label_/g"\ |
kpeter@343 | 27 |
-e "s/\<Graphs\>/_Digr_aph_label_s/g"\ |
kpeter@343 | 28 |
-e "s/\<graphs\>/_digr_aph_label_s/g"\ |
kpeter@343 | 29 |
-e "s/_Graph/__Gr_aph_label_/g"\ |
kpeter@343 | 30 |
-e "s/\([Gg]\)raph\([a-z_]\)/_\1r_aph_label_\2/g"\ |
kpeter@343 | 31 |
-e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\ |
kpeter@323 | 32 |
-e "s/Graph/_Digr_aph_label_/g"\ |
kpeter@323 | 33 |
-e "s/graph/_digr_aph_label_/g"\ |
kpeter@323 | 34 |
-e "s/UEdge/_Ed_ge_label_/g"\ |
kpeter@343 | 35 |
-e "s/u[Ee]dge/_ed_ge_label_/g"\ |
kpeter@323 | 36 |
-e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\ |
kpeter@343 | 37 |
-e "s/\<Edge\>/_Ar_c_label_/g"\ |
kpeter@343 | 38 |
-e "s/\<edge\>/_ar_c_label_/g"\ |
kpeter@343 | 39 |
-e "s/\<Edges\>/_Ar_c_label_s/g"\ |
kpeter@343 | 40 |
-e "s/\<edges\>/_ar_c_label_s/g"\ |
kpeter@343 | 41 |
-e "s/_Edge/__Ed_ge_label_/g"\ |
kpeter@343 | 42 |
-e "s/Edge\([a-z_]\)/_Ed_ge_label_\1/g"\ |
kpeter@343 | 43 |
-e "s/edge\([a-z_]\)/_ed_ge_label_\1/g"\ |
kpeter@343 | 44 |
-e "s/\([a-z_]\)edge/\1_ed_ge_label_/g"\ |
kpeter@323 | 45 |
-e "s/Edge/_Ar_c_label_/g"\ |
kpeter@323 | 46 |
-e "s/edge/_ar_c_label_/g"\ |
kpeter@343 | 47 |
-e "s/A[Nn]ode/_Re_d_label_/g"\ |
kpeter@343 | 48 |
-e "s/B[Nn]ode/_Blu_e_label_/g"\ |
kpeter@343 | 49 |
-e "s/A-[Nn]ode/_Re_d_label_/g"\ |
kpeter@343 | 50 |
-e "s/B-[Nn]ode/_Blu_e_label_/g"\ |
kpeter@343 | 51 |
-e "s/a[Nn]ode/_re_d_label_/g"\ |
kpeter@343 | 52 |
-e "s/b[Nn]ode/_blu_e_label_/g"\ |
kpeter@344 | 53 |
-e "s/\<UGRAPH_TYPEDEFS\([ \t]*([ \t]*\)typename[ \t]/TEMPLATE__GR_APH_TY_PEDE_FS_label_\1/g"\ |
kpeter@344 | 54 |
-e "s/\<GRAPH_TYPEDEFS\([ \t]*([ \t]*\)typename[ \t]/TEMPLATE__DIGR_APH_TY_PEDE_FS_label_\1/g"\ |
kpeter@344 | 55 |
-e "s/\<UGRAPH_TYPEDEFS\>/_GR_APH_TY_PEDE_FS_label_/g"\ |
kpeter@344 | 56 |
-e "s/\<GRAPH_TYPEDEFS\>/_DIGR_APH_TY_PEDE_FS_label_/g"\ |
kpeter@323 | 57 |
-e "s/_Digr_aph_label_/Digraph/g"\ |
kpeter@323 | 58 |
-e "s/_digr_aph_label_/digraph/g"\ |
kpeter@323 | 59 |
-e "s/_Gr_aph_label_/Graph/g"\ |
kpeter@323 | 60 |
-e "s/_gr_aph_label_/graph/g"\ |
kpeter@323 | 61 |
-e "s/_Ar_c_label_/Arc/g"\ |
kpeter@323 | 62 |
-e "s/_ar_c_label_/arc/g"\ |
kpeter@323 | 63 |
-e "s/_Ed_ge_label_/Edge/g"\ |
kpeter@323 | 64 |
-e "s/_ed_ge_label_/edge/g"\ |
kpeter@323 | 65 |
-e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\ |
kpeter@323 | 66 |
-e "s/_Re_d_label_/Red/g"\ |
kpeter@323 | 67 |
-e "s/_Blu_e_label_/Blue/g"\ |
kpeter@323 | 68 |
-e "s/_re_d_label_/red/g"\ |
kpeter@323 | 69 |
-e "s/_blu_e_label_/blue/g"\ |
kpeter@344 | 70 |
-e "s/_GR_APH_TY_PEDE_FS_label_/GRAPH_TYPEDEFS/g"\ |
kpeter@344 | 71 |
-e "s/_DIGR_APH_TY_PEDE_FS_label_/DIGRAPH_TYPEDEFS/g"\ |
kpeter@343 | 72 |
-e "s/DigraphToEps/GraphToEps/g"\ |
kpeter@343 | 73 |
-e "s/digraphToEps/graphToEps/g"\ |
kpeter@323 | 74 |
-e "s/\<DefPredMap\>/SetPredMap/g"\ |
kpeter@323 | 75 |
-e "s/\<DefDistMap\>/SetDistMap/g"\ |
kpeter@323 | 76 |
-e "s/\<DefReachedMap\>/SetReachedMap/g"\ |
kpeter@323 | 77 |
-e "s/\<DefProcessedMap\>/SetProcessedMap/g"\ |
kpeter@323 | 78 |
-e "s/\<DefHeap\>/SetHeap/g"\ |
kpeter@323 | 79 |
-e "s/\<DefStandardHeap\>/SetStandradHeap/g"\ |
kpeter@323 | 80 |
-e "s/\<DefOperationTraits\>/SetOperationTraits/g"\ |
kpeter@323 | 81 |
-e "s/\<DefProcessedMapToBeDefaultMap\>/SetStandardProcessedMap/g"\ |
kpeter@323 | 82 |
-e "s/\<copyGraph\>/graphCopy/g"\ |
kpeter@323 | 83 |
-e "s/\<copyDigraph\>/digraphCopy/g"\ |
kpeter@365 | 84 |
-e "s/\<HyperCubeDigraph\>/HypercubeGraph/g"\ |
kpeter@323 | 85 |
-e "s/\<IntegerMap\>/RangeMap/g"\ |
kpeter@323 | 86 |
-e "s/\<integerMap\>/rangeMap/g"\ |
kpeter@323 | 87 |
-e "s/\<\([sS]\)tdMap\>/\1parseMap/g"\ |
kpeter@323 | 88 |
-e "s/\<\([Ff]\)unctorMap\>/\1unctorToMap/g"\ |
kpeter@323 | 89 |
-e "s/\<\([Mm]\)apFunctor\>/\1apToFunctor/g"\ |
kpeter@323 | 90 |
-e "s/\<\([Ff]\)orkWriteMap\>/\1orkMap/g"\ |
kpeter@323 | 91 |
-e "s/\<StoreBoolMap\>/LoggerBoolMap/g"\ |
kpeter@323 | 92 |
-e "s/\<storeBoolMap\>/loggerBoolMap/g"\ |
kpeter@323 | 93 |
-e "s/\<BoundingBox\>/Box/g"\ |
kpeter@359 | 94 |
-e "s/\<readNauty\>/readNautyGraph/g"\ |
kpeter@323 | 95 |
<$i > $TMP |
kpeter@323 | 96 |
mv $TMP $i |
kpeter@323 | 97 |
done |