fix-header-locs-ifdh.pl
Go to the documentation of this file.
1 use strict;
2 
3 use vars qw(%inc_translations $g4physics_list);
4 BEGIN { %inc_translations = (
5  "IFDH_service.h" => "ifdh_art/IFDHService/IFDH_service.h",
6  "IFBeam_service.h" => "ifdh_art/IFBeamService/IFBeam_service.h",
7  "IFCatalogInterface_service.h" => "ifdh_art/IFCatalogInterface/IFCatalogInterface_service.h",
8  "IFFileTransfer_service.h" => "ifdh_art/IFFileTransfer/IFFileTransfer_service.h",
9  "nucondb_service.h" => "ifdh_art/NUconDBService/NUconDB_service.h"
10  );
11 
12  }
13 
14 foreach my $inc (sort keys %inc_translations) {
15  s&^(\s*#include\s+["<])\Q$inc\E(.*)&${1}$inc_translations{$inc}${2}& and last;
16 }
17 
18 
19 
20 ### Local Variables:
21 ### mode: cperl
22 ### End: