Skip to content
  • Mark Olesen's avatar
    Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
    Mark Olesen authored and Brad King's avatar Brad King committed
    The CVS $Revision$ keyword replacement will no longer maintain these
    macros automatically.  They were used only to implement CollectRevisions
    and vtkObjectBase::PrintRevisions, an API that was never used.
    
    Automated as follows:
    
      pass 0:
      catch templates
      ---------------
      $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
    
      pass 1:
      main changes
      ---------------
      $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
        echo "$file" 1>&2
        perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
      done
      $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
        echo "$file" 1>&2
        perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
      done
    
      pass 2:
      verify
      ---------------
      $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
    
    Fixed multi-line vtkCxxRevisionMacro and templates by hand.
    19c55e0e