#!/bin/bash set -e if [ $# -eq 0 -o x$1 = "x-h" -o x$1 = "x-help" -o x$1 = "x--help" ]; then echo "Usage:" echo " $0 source-file(s)" exit fi for i in $@ do echo Update $i... TMP=`mktemp` sed -e "s/\/_gr_aph_label_/g"\ -e "s/\/_gr_aph_label_s/g"\ -e "s/\/_ed_ge_label_/g"\ -e "s/\/_ed_ge_label_s/g"\ -e "s/\/_digr_aph_label_/g"\ -e "s/\/_digr_aph_label_s/g"\ -e "s/\/_ar_c_label_/g"\ -e "s/\/_ar_c_label_s/g"\ -e "s/UGraph/_Gr_aph_label_/g"\ -e "s/u[Gg]raph/_gr_aph_label_/g"\ -e "s/Graph\>/_Digr_aph_label_/g"\ -e "s/\/_digr_aph_label_/g"\ -e "s/Graphs\>/_Digr_aph_label_s/g"\ -e "s/\/_digr_aph_label_s/g"\ -e "s/\([Gg]\)raph\([a-z]\)/_\1r_aph_label_\2/g"\ -e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\ -e "s/Graph/_Digr_aph_label_/g"\ -e "s/graph/_digr_aph_label_/g"\ -e "s/UEdge/_Ed_ge_label_/g"\ -e "s/u[Ee]dge/_ed_ge_label_/g"\ -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\ -e "s/Edge\>/_Ar_c_label_/g"\ -e "s/\/_ar_c_label_/g"\ -e "s/_edge\>/__ar_c_label_/g"\ -e "s/Edges\>/_Ar_c_label_s/g"\ -e "s/\/_ar_c_label_s/g"\ -e "s/_edges\>/__ar_c_label_s/g"\ -e "s/\([Ee]\)dge\([a-z]\)/_\1d_ge_label_\2/g"\ -e "s/\([a-z]\)edge/\1_ed_ge_label_/g"\ -e "s/Edge/_Ar_c_label_/g"\ -e "s/edge/_ar_c_label_/g"\ -e "s/A[Nn]ode/_Re_d_label_/g"\ -e "s/B[Nn]ode/_Blu_e_label_/g"\ -e "s/A-[Nn]ode/_Re_d_label_/g"\ -e "s/B-[Nn]ode/_Blu_e_label_/g"\ -e "s/a[Nn]ode/_re_d_label_/g"\ -e "s/b[Nn]ode/_blu_e_label_/g"\ -e "s/\/_GR_APH_TY_PEDE_FS_label_/g"\ -e "s/\/_DIGR_APH_TY_PEDE_FS_label_/g"\ -e "s/_Digr_aph_label_/Digraph/g"\ -e "s/_digr_aph_label_/digraph/g"\ -e "s/_Gr_aph_label_/Graph/g"\ -e "s/_gr_aph_label_/graph/g"\ -e "s/_Ar_c_label_/Arc/g"\ -e "s/_ar_c_label_/arc/g"\ -e "s/_Ed_ge_label_/Edge/g"\ -e "s/_ed_ge_label_/edge/g"\ -e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\ -e "s/_Re_d_label_/Red/g"\ -e "s/_Blu_e_label_/Blue/g"\ -e "s/_re_d_label_/red/g"\ -e "s/_blu_e_label_/blue/g"\ -e "s/_GR_APH_TY_PEDE_FS_label_/GRAPH_TYPEDEFS/g"\ -e "s/_DIGR_APH_TY_PEDE_FS_label_/DIGRAPH_TYPEDEFS/g"\ -e "s/\/adaptors.h/g"\ -e "s/\/core.h/g"\ -e "s/\/lgf_reader.h/g"\ -e "s/\/lgf_writer.h/g"\ -e "s/\/connectivity.h/g"\ -e "s/DigraphToEps/GraphToEps/g"\ -e "s/digraphToEps/graphToEps/g"\ -e "s/\/SetPredMap/g"\ -e "s/\/SetDistMap/g"\ -e "s/\/SetReachedMap/g"\ -e "s/\/SetProcessedMap/g"\ -e "s/\/SetHeap/g"\ -e "s/\/SetStandradHeap/g"\ -e "s/\/SetOperationTraits/g"\ -e "s/\/SetStandardProcessedMap/g"\ -e "s/\/graphCopy/g"\ -e "s/\/digraphCopy/g"\ -e "s/\/HypercubeGraph/g"\ -e "s/\/RangeMap/g"\ -e "s/\/rangeMap/g"\ -e "s/\<\([sS]\)tdMap\>/\1parseMap/g"\ -e "s/\<\([Ff]\)unctorMap\>/\1unctorToMap/g"\ -e "s/\<\([Mm]\)apFunctor\>/\1apToFunctor/g"\ -e "s/\<\([Ff]\)orkWriteMap\>/\1orkMap/g"\ -e "s/\/LoggerBoolMap/g"\ -e "s/\/loggerBoolMap/g"\ -e "s/\/CrossRefMap/g"\ -e "s/\/crossRefMap/g"\ -e "s/\/RangeIdMap/g"\ -e "s/\/rangeIdMap/g"\ -e "s/\/Box/g"\ -e "s/\/readNautyGraph/g"\ -e "s/\/ReverseDigraph/g"\ -e "s/\/reverseDigraph/g"\ -e "s/\/SubDigraph/g"\ -e "s/\/subDigraph/g"\ -e "s/\/SubGraph/g"\ -e "s/\/subGraph/g"\ -e "s/\/FilterNodes/g"\ -e "s/\/filterNodes/g"\ -e "s/\/FilterArcs/g"\ -e "s/\/filterArcs/g"\ -e "s/\/Undirector/g"\ -e "s/\/undirector/g"\ -e "s/\/ResidualDigraph/g"\ -e "s/\/residualDigraph/g"\ -e "s/\/SplitNodes/g"\ -e "s/\/splitNodes/g"\ -e "s/\/SubGraph/g"\ -e "s/\/subGraph/g"\ -e "s/\/FilterNodes/g"\ -e "s/\/filterNodes/g"\ -e "s/\/FilterEdges/g"\ -e "s/\/filterEdges/g"\ -e "s/\/Orienter/g"\ -e "s/\/orienter/g"\ -e "s/\/CplexLp/g"\ -e "s/\/CplexMip/g"\ -e "s/\/GlpkLp/g"\ -e "s/\/GlpkMip/g"\ -e "s/\/SoplexLp/g"\ <$i > $TMP mv $TMP $i done