All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fix_headers_lardataalg.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 "lardata/DetectorInfo/ClockConstants.h" => "lardataalg/DetectorInfo/ClockConstants.h",
9 "lardata/DetectorInfo/DetectorClocksException.h" => "lardataalg/DetectorInfo/DetectorClocksException.h",
10 "lardata/DetectorInfo/DetectorClocks.h" => "lardataalg/DetectorInfo/DetectorClocks.h",
11 "lardata/DetectorInfo/DetectorClocksStandard.h" => "lardataalg/DetectorInfo/DetectorClocksStandard.h",
12 "lardata/DetectorInfo/DetectorClocksStandardTestHelpers.h" => "lardataalg/DetectorInfo/DetectorClocksStandardTestHelpers.h",
13 "lardata/DetectorInfo/DetectorClocksStandardTriggerLoader.h" => "lardataalg/DetectorInfo/DetectorClocksStandardTriggerLoader.h",
14 "lardata/DetectorInfo/DetectorProperties.h" => "lardataalg/DetectorInfo/DetectorProperties.h",
15 "lardata/DetectorInfo/DetectorPropertiesStandard.h" => "lardataalg/DetectorInfo/DetectorPropertiesStandard.h",
16 "lardata/DetectorInfo/DetectorPropertiesStandardTestHelpers.h" => "lardataalg/DetectorInfo/DetectorPropertiesStandardTestHelpers.h",
17 "lardata/DetectorInfo/ElecClock.h" => "lardataalg/DetectorInfo/ElecClock.h",
18 "lardata/DetectorInfo/LArProperties.h" => "lardataalg/DetectorInfo/LArProperties.h",
19 "lardata/DetectorInfo/LArPropertiesStandard.h" => "lardataalg/DetectorInfo/LArPropertiesStandard.h",
20 "lardata/DetectorInfo/LArPropertiesStandardTestHelpers.h" => "lardataalg/DetectorInfo/LArPropertiesStandardTestHelpers.h",
21 "lardata/DetectorInfo/RunHistory.h" => "lardataalg/DetectorInfo/RunHistory.h",
22 "lardata/DetectorInfo/RunHistoryStandard.h" => "lardataalg/DetectorInfo/RunHistoryStandard.h"
23  ); }
24 
25 foreach my $inc (sort keys %header_list) {
26  s&^(\s*#include\s+["<])\Q$inc\E(.*)&${1}$header_list{$inc}${2}& and last;
27 }
use File::Basename qw(fileparse)
foreach my $inc(sort keys%subdir_list)
Definition: fix_headers.pl:100
my($xml, $fcl, $workdir, $check, $merge)
BEGIN
Definition: fix_cmake.pl:4
use strict
Definition: SubmitCommand.pl:8
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60