fix_cmake_nuevdb.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%dir_list);
4 BEGIN { %dir_list = (
5  "nutools_EventDisplayBase_Colors_service" => "nuevdb_EventDisplayBase_Colors_service",
6  "nutools_EventDisplayBase_EventDisplay_service" => "nuevdb_EventDisplayBase_EventDisplay_service",
7  "nutools_EventDisplayBase_ScanOptions_service" => "nuevdb_EventDisplayBase_ScanOptions_service",
8  "nutools_EventDisplayBase" => "nuevdb_EventDisplayBase",
9  "nutools_IFDatabase" => "nuevdb_IFDatabase",
10  "nutools_IFDatabase_DBI_service" => "nuevdb_IFDatabase_DBI_service"
11  ); }
12 
13 foreach my $lib (sort keys %dir_list) {
14  next if m&add_subdirectory&i;
15  next if m&simple_plugin&i;
16  next if m&SUBDIRNAME&i;
17  next if m&SUBDIRS&i;
18  #s&\b\Q${lib}\E([^\.\s]*\b)([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
19  s&\b\Q${lib}\E\b([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
20 }