fix_cmake_genie3.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%dir_list);
4 
5 BEGIN { %dir_list = (
6 "GALGORITHM" => "GFWALG",
7 "GHEP" => "GFWGHEP",
8 "GEVGCORE" => "GFWEG",
9 "GPDG" => "GFWPARDAT",
10 "GMESSENGER" => "GFWMSG",
11 "GNUCLEONDECAY" => "GPHNDCY",
12 "GMUELOSS" => "GPHMEL",
13 "GFLUXDRIVERS" => "GTLFLX",
14 "GGEO" => "GTLGEO",
15 "GUTILS" => "GFWUTL",
16 "GREGISTRY" => "GFWREG",
17 "GRES" => "GPHRESEG GPHRESXS",
18 "GQEL" => "GPHQELEG",
19 "GPDF" => "GPHPDF",
20 "GPDG" => "GFWPARDAT",
21 "GQPM" => "PHDISXS",
22 "GNUMERICAL" => "GFWNUM",
23 "GNUCLEAR" => "GPHNUCLST",
24 "GNTUPLE" => "GFWNTP",
25 "GNUE" => "GPHNUELEG GPHNUELXS",
26 "GNUGAMMA" => "GPHAMNGEG GPHAMNGXS",
27 "GMEC" => "GPHMNUCEG GPHMNUCXS",
28 "GINTERACTION" => "GFWINT",
29 "GFRAGMENTATION" => "GPHHADNZ",
30 "GHADRONTRANSP" => "GPHHADTRANSP",
31 "GDECAY" => "GPHDCY",
32 "GCROSSSECTIONS" => "GPHXSIG",
33 "GDIS" => "GPHDISEG",
34 "GDFRC" => "GPHDFRCEG",
35 "GREINSEHGAL" => "GPHRESXS",
36 "GLLEWELLYNSMITH" => "GPHQELXS",
37 "GREWEIGHT" => "GTLREW",
38 "GEVGMODULES" => "GPHCMN",
39 "GEVGDRIVERS" => "GFWEG",
40 "GGIBUU" => "GPHRESXS",
41 "GELAS" => "GPHQELXS",
42 "GELFF" => "GPHQELXS",
43 "GCHARM" => "GPHCHMXS",
44 "GBARYONRESONANCE" => "GFWPARDAT",
45 "GBASE" => "GPHDISXS",
46 "GBODEKYANG" => "GPHDISXS",
47 "GCOH" => "GPHCOHEG GPHCOHXS"
48  ); }
49 
50 foreach my $lib (sort keys %dir_list) {
51  next if m&add_subdirectory&i;
52  next if m&simple_plugin&i;
53  next if m&SUBDIRNAME&i;
54  next if m&SUBDIRS&i;
55  #s&\b\Q${lib}\E([^\.\s]*\b)([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
56  s&\b\Q${lib}\E\b([^\.]|$)&$dir_list{$lib}${1}${2}&g and last;
57 }
58 # cleanup
59 s/\$\{GPHRESEG GPHRESXS\}/\$\{GPHRESEG\} \$\{GPHRESXS\}/g;
60 s/\$\{GPHNUELEG GPHNUELXS\}/\$\{GPHNUELEG\} \$\{GPHNUELXS\}/g;
61 s/\$\{GPHAMNGEG GPHAMNGXS\}/\$\{GPHAMNGEG\} \$\{GPHAMNGXS\}/g;
62 s/\$\{GPHMNUCEG GPHMNUCXS\}/\$\{GPHMNUCEG\} \$\{GPHMNUCXS\}/g;
63 s/\$\{GPHCOHEG GPHCOHXS\}/\$\{GPHCOHEG\} \$\{GPHCOHXS\}/g;
64