fix_cmake_dnn.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%dir_list);
4 
5 BEGIN { %dir_list = (
6 "larreco_RecoAlg_ImagePatternAlgs_Keras" => "larrecodnn_ImagePatternAlgs_Keras",
7 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_CheckCNNScore_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_CheckCNNScore_module",
8 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_EmTrackClusterId2out_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_EmTrackClusterId2out_module",
9 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_EmTrackClusterId3out_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_EmTrackClusterId3out_module",
10 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_EmTrackMichelId_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_EmTrackMichelId_module",
11 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_ParticleDecayId_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_ParticleDecayId_module",
12 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_PointIdEffTest_module" => "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_PointIdEffTest_module",
13 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_Modules_PointIdTrainingData_module" => "larrecodnn_ImagePatternAlgs_Tensorflow_Modules_PointIdTrainingData_module",
14 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_PointIdAlg" => "larrecodnn_ImagePatternAlgs_Tensorflow_PointIdAlg",
15 "larreco_RecoAlg_ImagePatternAlgs_Tensorflow_TF" => "larrecodnn_ImagePatternAlgs_Tensorflow_TF"
16  ); }
17 
18 foreach my $lib (sort keys %dir_list) {
19  next if m&add_subdirectory&i;
20  next if m&simple_plugin&i;
21  next if m&SUBDIRNAME&i;
22  next if m&SUBDIRS&i;
23  #s&\b\Q${lib}\E([^\.\s]*\b)([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
24  s&\b\Q${lib}\E\b([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
25 }