All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
v06_30_00-GeoToGeometry.py
Go to the documentation of this file.
1 #!/usr/bin/env python2
2 #
3 # This script changes C++ code and CMake files to use sbndcode/Geomery
4 # in place of the old sbndcode/Geo .
5 #
6 # Change log:
7 # 20170405 (petrillo@fnal.gov)
8 # original version
9 #
10 
11 import sys, re
12 
13 import SerialSubstitution
14 from SerialSubstitution import AddProcessor, RunSubstitutor
15 
16 
17 ################################################################################
18 if __name__ == "__main__":
19 
20  #############################################################################
21  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
22  # CMakeLists.txt
23  #
25 
26  Subst.AddFileNamePattern("CMakeLists.txt")
27 
28  Subst.AddWord ("sbndcode_Geo", "sbndcode_Geometry")
29 
30  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
31  # C++ source code (including modules and services)
32  #
34 
35  Subst.AddFileType("h", "cc", "cpp", "cxx")
36 
37  Subst.AddWord ("sbndcode/Geo/", "sbndcode/Geometry/")
38 
39  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
40  #############################################################################
41 
42  sys.exit(RunSubstitutor())
43 #