Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
sbndcode
bin
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
#
24
Subst =
AddProcessor
(
SerialSubstitution.ProcessorClass
(
"cmake"
))
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
#
33
Subst =
AddProcessor
(
SerialSubstitution.ProcessorClass
(
"code"
))
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
#
SerialSubstitution.ProcessorClass
Definition:
SerialSubstitution.py:193
SerialSubstitution.AddProcessor
def AddProcessor
Definition:
SerialSubstitution.py:489
SerialSubstitution.RunSubstitutor
def RunSubstitutor
Definition:
SerialSubstitution.py:503
Generated by
1.8.5