fix_cmake_nurandom.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%dir_list);
4 BEGIN { %dir_list = (
5  "nutools_RandomUtils_nurandom_service" => "nurandom_RandomUtils_nurandom_service",
6  "nutools_RandomUtils_NuRandomService_service" => "nurandom_RandomUtils_NuRandomService_service",
7  "nutools_test_RandomUtils" => "nurandom_test_RandomUtils",
8  "NUTOOLS_RANDOMUTILS_NURANDOM_SERVICE" => "NURANDOM_RANDOMUTILS_NURANDOM_SERVICE",
9  "NUTOOLS_RANDOMUTILS_NURANDOMSERVICE_SERVICE" => "NURANDOM_RANDOMUTILS_NURANDOMSERVICE_SERVICE",
10  "NUTOOLS_TEST_RANDOMUTILS" => "NURANDOM_TEST_RANDOMUTILS"
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 }