fix_headers_nuevdb.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%subdir_list);
4 use vars qw(%header_list);
5 
6 # explicit headers to avoid conflicts with experiment code
7 BEGIN { %header_list = (
8 "nutools/EventDisplayBase/ButtonBar.h"=> "nuevdb/EventDisplayBase/ButtonBar.h",
9 "nutools/EventDisplayBase/Canvas.h"=> "nuevdb/EventDisplayBase/Canvas.h",
10 "nutools/EventDisplayBase/ColorScale.h"=> "nuevdb/EventDisplayBase/ColorScale.h",
11 "nutools/EventDisplayBase/Colors.h"=> "nuevdb/EventDisplayBase/Colors.h",
12 "nutools/EventDisplayBase/DisplayWindow.h"=> "nuevdb/EventDisplayBase/DisplayWindow.h",
13 "nutools/EventDisplayBase/EditMenu.h"=> "nuevdb/EventDisplayBase/EditMenu.h",
14 "nutools/EventDisplayBase/evdb.h"=> "nuevdb/EventDisplayBase/evdb.h",
15 "nutools/EventDisplayBase/EventDisplay.h"=> "nuevdb/EventDisplayBase/EventDisplay.h",
16 "nutools/EventDisplayBase/EventHolder.h"=> "nuevdb/EventDisplayBase/EventHolder.h",
17 "nutools/EventDisplayBase/FileMenu.h"=> "nuevdb/EventDisplayBase/FileMenu.h",
18 "nutools/EventDisplayBase/Functors.h"=> "nuevdb/EventDisplayBase/Functors.h",
19 "nutools/EventDisplayBase/HelpMenu.h"=> "nuevdb/EventDisplayBase/HelpMenu.h",
20 "nutools/EventDisplayBase/JobMenu.h"=> "nuevdb/EventDisplayBase/JobMenu.h",
21 "nutools/EventDisplayBase/LinkDef.h"=> "nuevdb/EventDisplayBase/LinkDef.h",
22 "nutools/EventDisplayBase/ListWindow.h"=> "nuevdb/EventDisplayBase/ListWindow.h",
23 "nutools/EventDisplayBase/MenuBar.h"=> "nuevdb/EventDisplayBase/MenuBar.h",
24 "nutools/EventDisplayBase/NavState.h"=> "nuevdb/EventDisplayBase/NavState.h",
25 "nutools/EventDisplayBase/ObjListCanvas.h"=> "nuevdb/EventDisplayBase/ObjListCanvas.h",
26 "nutools/EventDisplayBase/ParameterSetEditDialog.h"=> "nuevdb/EventDisplayBase/ParameterSetEditDialog.h",
27 "nutools/EventDisplayBase/ParameterSetEdit.h"=> "nuevdb/EventDisplayBase/ParameterSetEdit.h",
28 "nutools/EventDisplayBase/Printable.h"=> "nuevdb/EventDisplayBase/Printable.h",
29 "nutools/EventDisplayBase/PrintDialog.h"=> "nuevdb/EventDisplayBase/PrintDialog.h",
30 "nutools/EventDisplayBase/Reconfigurable.h"=> "nuevdb/EventDisplayBase/Reconfigurable.h",
31 "nutools/EventDisplayBase/RootEnv.h"=> "nuevdb/EventDisplayBase/RootEnv.h",
32 "nutools/EventDisplayBase/ScanOptions.h"=> "nuevdb/EventDisplayBase/ScanOptions.h",
33 "nutools/EventDisplayBase/ScanWindow.h"=> "nuevdb/EventDisplayBase/ScanWindow.h",
34 "nutools/EventDisplayBase/ServiceTable.h"=> "nuevdb/EventDisplayBase/ServiceTable.h",
35 "nutools/EventDisplayBase/StatusBar.h"=> "nuevdb/EventDisplayBase/StatusBar.h",
36 "nutools/EventDisplayBase/View2D.h"=> "nuevdb/EventDisplayBase/View2D.h",
37 "nutools/EventDisplayBase/View3D.h"=> "nuevdb/EventDisplayBase/View3D.h",
38 "nutools/EventDisplayBase/WindowMenu.h"=> "nuevdb/EventDisplayBase/WindowMenu.h",
39 "nutools/IFDatabase/ColumnDef.h"=> "nuevdb/IFDatabase/ColumnDef.h",
40 "nutools/IFDatabase/Column.h"=> "nuevdb/IFDatabase/Column.h",
41 "nutools/IFDatabase/DataType.h"=> "nuevdb/IFDatabase/DataType.h",
42 "nutools/IFDatabase/DBIService.h"=> "nuevdb/IFDatabase/DBIService.h",
43 "nutools/IFDatabase/Row.h"=> "nuevdb/IFDatabase/Row.h",
44 "nutools/IFDatabase/Table.h"=> "nuevdb/IFDatabase/Table.h",
45 "nutools/IFDatabase/Util.h"=> "nuevdb/IFDatabase/Util.h"
46  ); }
47 
48 foreach my $inc (sort keys %header_list) {
49  s&^(\s*#include\s+["<])\Q$inc\E(.*)&${1}$header_list{$inc}${2}& and last;
50 }