author | Peter Kovacs <kpeter@inf.elte.hu> |
Tue, 28 Oct 2008 15:37:46 +0100 | |
changeset 353 | f8832dc16d45 |
parent 310 | a9e8f310507f |
child 355 | 956a29f30887 |
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@335 | 6 |
echo "Usage:" |
kpeter@335 | 7 |
echo " $0 source-file(s)" |
kpeter@335 | 8 |
exit |
alpar@305 | 9 |
fi |
alpar@305 | 10 |
|
kpeter@335 | 11 |
for i in $@ |
kpeter@335 | 12 |
do |
kpeter@335 | 13 |
echo Update $i... |
kpeter@335 | 14 |
TMP=`mktemp` |
kpeter@335 | 15 |
sed -e "s/undirected graph/_gr_aph_label_/g"\ |
kpeter@335 | 16 |
-e "s/undirected edge/_ed_ge_label_/g"\ |
kpeter@335 | 17 |
-e "s/graph_/_gr_aph_label__/g"\ |
kpeter@335 | 18 |
-e "s/_graph/__gr_aph_label_/g"\ |
kpeter@335 | 19 |
-e "s/UGraph/_Gr_aph_label_/g"\ |
kpeter@335 | 20 |
-e "s/uGraph/_gr_aph_label_/g"\ |
kpeter@335 | 21 |
-e "s/ugraph/_gr_aph_label_/g"\ |
kpeter@335 | 22 |
-e "s/Graph/_Digr_aph_label_/g"\ |
kpeter@335 | 23 |
-e "s/graph/_digr_aph_label_/g"\ |
kpeter@335 | 24 |
-e "s/UEdge/_Ed_ge_label_/g"\ |
kpeter@335 | 25 |
-e "s/uEdge/_ed_ge_label_/g"\ |
kpeter@335 | 26 |
-e "s/uedge/_ed_ge_label_/g"\ |
kpeter@335 | 27 |
-e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\ |
kpeter@335 | 28 |
-e "s/Edge/_Ar_c_label_/g"\ |
kpeter@335 | 29 |
-e "s/edge/_ar_c_label_/g"\ |
kpeter@335 | 30 |
-e "s/ANode/_Re_d_label_/g"\ |
kpeter@335 | 31 |
-e "s/BNode/_Blu_e_label_/g"\ |
kpeter@335 | 32 |
-e "s/A-Node/_Re_d_label_/g"\ |
kpeter@335 | 33 |
-e "s/B-Node/_Blu_e_label_/g"\ |
kpeter@335 | 34 |
-e "s/anode/_re_d_label_/g"\ |
kpeter@335 | 35 |
-e "s/bnode/_blu_e_label_/g"\ |
kpeter@335 | 36 |
-e "s/aNode/_re_d_label_/g"\ |
kpeter@335 | 37 |
-e "s/bNode/_blu_e_label_/g"\ |
kpeter@335 | 38 |
-e "s/_Digr_aph_label_/Digraph/g"\ |
kpeter@335 | 39 |
-e "s/_digr_aph_label_/digraph/g"\ |
kpeter@335 | 40 |
-e "s/_Gr_aph_label_/Graph/g"\ |
kpeter@335 | 41 |
-e "s/_gr_aph_label_/graph/g"\ |
kpeter@335 | 42 |
-e "s/_Ar_c_label_/Arc/g"\ |
kpeter@335 | 43 |
-e "s/_ar_c_label_/arc/g"\ |
kpeter@335 | 44 |
-e "s/_Ed_ge_label_/Edge/g"\ |
kpeter@335 | 45 |
-e "s/_ed_ge_label_/edge/g"\ |
kpeter@335 | 46 |
-e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\ |
kpeter@335 | 47 |
-e "s/_Re_d_label_/Red/g"\ |
kpeter@335 | 48 |
-e "s/_Blu_e_label_/Blue/g"\ |
kpeter@335 | 49 |
-e "s/_re_d_label_/red/g"\ |
kpeter@335 | 50 |
-e "s/_blu_e_label_/blue/g"\ |
kpeter@335 | 51 |
-e "s/\<DefPredMap\>/SetPredMap/g"\ |
kpeter@335 | 52 |
-e "s/\<DefDistMap\>/SetDistMap/g"\ |
kpeter@335 | 53 |
-e "s/\<DefReachedMap\>/SetReachedMap/g"\ |
kpeter@335 | 54 |
-e "s/\<DefProcessedMap\>/SetProcessedMap/g"\ |
kpeter@335 | 55 |
-e "s/\<DefHeap\>/SetHeap/g"\ |
kpeter@335 | 56 |
-e "s/\<DefStandardHeap\>/SetStandradHeap/g"\ |
kpeter@335 | 57 |
-e "s/\<DefOperationTraits\>/SetOperationTraits/g"\ |
kpeter@335 | 58 |
-e "s/\<DefProcessedMapToBeDefaultMap\>/SetStandardProcessedMap/g"\ |
kpeter@335 | 59 |
-e "s/\<copyGraph\>/graphCopy/g"\ |
kpeter@335 | 60 |
-e "s/\<copyDigraph\>/digraphCopy/g"\ |
kpeter@335 | 61 |
-e "s/\<IntegerMap\>/RangeMap/g"\ |
kpeter@335 | 62 |
-e "s/\<integerMap\>/rangeMap/g"\ |
kpeter@335 | 63 |
-e "s/\<\([sS]\)tdMap\>/\1parseMap/g"\ |
kpeter@335 | 64 |
-e "s/\<\([Ff]\)unctorMap\>/\1unctorToMap/g"\ |
kpeter@335 | 65 |
-e "s/\<\([Mm]\)apFunctor\>/\1apToFunctor/g"\ |
kpeter@335 | 66 |
-e "s/\<\([Ff]\)orkWriteMap\>/\1orkMap/g"\ |
kpeter@335 | 67 |
-e "s/\<StoreBoolMap\>/LoggerBoolMap/g"\ |
kpeter@335 | 68 |
-e "s/\<storeBoolMap\>/loggerBoolMap/g"\ |
kpeter@335 | 69 |
-e "s/\<BoundingBox\>/Box/g"\ |
kpeter@335 | 70 |
<$i > $TMP |
kpeter@335 | 71 |
mv $TMP $i |
kpeter@335 | 72 |
done |