alpar@305: #!/bin/bash alpar@305: alpar@305: set -e alpar@305: alpar@305: if [ $# -eq 0 -o x$1 = "x-h" -o x$1 = "x-help" -o x$1 = "x--help" ]; then kpeter@335: echo "Usage:" kpeter@335: echo " $0 source-file(s)" kpeter@335: exit alpar@305: fi alpar@305: kpeter@335: for i in $@ kpeter@335: do kpeter@335: echo Update $i... kpeter@335: TMP=`mktemp` kpeter@335: sed -e "s/undirected graph/_gr_aph_label_/g"\ kpeter@335: -e "s/undirected edge/_ed_ge_label_/g"\ kpeter@335: -e "s/graph_/_gr_aph_label__/g"\ kpeter@335: -e "s/_graph/__gr_aph_label_/g"\ kpeter@335: -e "s/UGraph/_Gr_aph_label_/g"\ kpeter@335: -e "s/uGraph/_gr_aph_label_/g"\ kpeter@335: -e "s/ugraph/_gr_aph_label_/g"\ kpeter@335: -e "s/Graph/_Digr_aph_label_/g"\ kpeter@335: -e "s/graph/_digr_aph_label_/g"\ kpeter@335: -e "s/UEdge/_Ed_ge_label_/g"\ kpeter@335: -e "s/uEdge/_ed_ge_label_/g"\ kpeter@335: -e "s/uedge/_ed_ge_label_/g"\ kpeter@335: -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\ kpeter@335: -e "s/Edge/_Ar_c_label_/g"\ kpeter@335: -e "s/edge/_ar_c_label_/g"\ kpeter@335: -e "s/ANode/_Re_d_label_/g"\ kpeter@335: -e "s/BNode/_Blu_e_label_/g"\ kpeter@335: -e "s/A-Node/_Re_d_label_/g"\ kpeter@335: -e "s/B-Node/_Blu_e_label_/g"\ kpeter@335: -e "s/anode/_re_d_label_/g"\ kpeter@335: -e "s/bnode/_blu_e_label_/g"\ kpeter@335: -e "s/aNode/_re_d_label_/g"\ kpeter@335: -e "s/bNode/_blu_e_label_/g"\ kpeter@335: -e "s/_Digr_aph_label_/Digraph/g"\ kpeter@335: -e "s/_digr_aph_label_/digraph/g"\ kpeter@335: -e "s/_Gr_aph_label_/Graph/g"\ kpeter@335: -e "s/_gr_aph_label_/graph/g"\ kpeter@335: -e "s/_Ar_c_label_/Arc/g"\ kpeter@335: -e "s/_ar_c_label_/arc/g"\ kpeter@335: -e "s/_Ed_ge_label_/Edge/g"\ kpeter@335: -e "s/_ed_ge_label_/edge/g"\ kpeter@335: -e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\ kpeter@335: -e "s/_Re_d_label_/Red/g"\ kpeter@335: -e "s/_Blu_e_label_/Blue/g"\ kpeter@335: -e "s/_re_d_label_/red/g"\ kpeter@335: -e "s/_blu_e_label_/blue/g"\ kpeter@335: -e "s/\/SetPredMap/g"\ kpeter@335: -e "s/\/SetDistMap/g"\ kpeter@335: -e "s/\/SetReachedMap/g"\ kpeter@335: -e "s/\/SetProcessedMap/g"\ kpeter@335: -e "s/\/SetHeap/g"\ kpeter@335: -e "s/\/SetStandradHeap/g"\ kpeter@335: -e "s/\/SetOperationTraits/g"\ kpeter@335: -e "s/\/SetStandardProcessedMap/g"\ kpeter@335: -e "s/\/graphCopy/g"\ kpeter@335: -e "s/\/digraphCopy/g"\ kpeter@335: -e "s/\/RangeMap/g"\ kpeter@335: -e "s/\/rangeMap/g"\ kpeter@335: -e "s/\<\([sS]\)tdMap\>/\1parseMap/g"\ kpeter@335: -e "s/\<\([Ff]\)unctorMap\>/\1unctorToMap/g"\ kpeter@335: -e "s/\<\([Mm]\)apFunctor\>/\1apToFunctor/g"\ kpeter@335: -e "s/\<\([Ff]\)orkWriteMap\>/\1orkMap/g"\ kpeter@335: -e "s/\/LoggerBoolMap/g"\ kpeter@335: -e "s/\/loggerBoolMap/g"\ kpeter@335: -e "s/\/Box/g"\ kpeter@335: <$i > $TMP kpeter@335: mv $TMP $i kpeter@335: done