fix_cmake_nug4.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%dir_list);
4 BEGIN { %dir_list = (
5  "nutools_G4Base" => "nug4_G4Base",
6  "nutools_MagneticField_MagneticField_service" => "nug4_MagneticField_MagneticField_service",
7  "nutools_ParticleNavigation" => "nug4_ParticleNavigation"
8  ); }
9 
10 foreach my $lib (sort keys %dir_list) {
11  next if m&add_subdirectory&i;
12  next if m&simple_plugin&i;
13  next if m&SUBDIRNAME&i;
14  next if m&SUBDIRS&i;
15  #s&\b\Q${lib}\E([^\.\s]*\b)([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
16  s&\b\Q${lib}\E\b([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
17 }