diff --git a/configure/CONFIG_SITE_ENV b/configure/CONFIG_SITE_ENV index c11f54e21..660c3d374 100644 --- a/configure/CONFIG_SITE_ENV +++ b/configure/CONFIG_SITE_ENV @@ -27,8 +27,9 @@ # Time service: # EPICS_TIMEZONE # Local timezone info for vxWorks and RTEMS. The format is -# :::: -# where the start and end are mmddhh - that is month,day,hour +# :::: +# where is only used by strftime() for %Z conversions, +# and and are mmddhh - that is month,day,hour # e.g. for ANL in 2018: EPICS_TIMEZONE=CUS::360:031102:110402 # The future dates below assume the rules don't get changed; # see http://www.timeanddate.com/time/dst/2018.html to check. diff --git a/src/tools/EPICS/Readfile.pm b/src/tools/EPICS/Readfile.pm index 4358a6ad2..c73f1925a 100644 --- a/src/tools/EPICS/Readfile.pm +++ b/src/tools/EPICS/Readfile.pm @@ -79,13 +79,13 @@ sub splitPath { return @path; } -my $RXstr = qr/ " (?: [^"] | \\" )* "/ox; -my $RXnam = qr/[a-zA-Z0-9_\-:.[\]<>;]+/o; -my $string = qr/ ( $RXnam | $RXstr ) /ox; +my $RXstr = qr/ " (?: [^"] | \\" )* "/x; +my $RXnam = qr/ [a-zA-Z0-9_\-:.[\]<>;]+ /x; +my $string = qr/ ( $RXnam | $RXstr ) /x; sub unquote { my ($s) = @_; - $s =~ s/^"(.*)"$/$1/o; + $s =~ s/^"(.*)"$/$1/; return $s; } @@ -147,17 +147,17 @@ sub Readfile { my @input = split /\n/, $input; my @output; foreach (@input) { - if (m/^ \s* include \s+ $string /ox) { + if (m/^ \s* include \s+ $string /x) { $arg = unquote($1); print " include $arg\n" if $debug; push @output, "##! include \"$arg\""; push @output, Readfile($arg, $macros, $Rpath); - } elsif (m/^ \s* addpath \s+ $string /ox) { + } elsif (m/^ \s* addpath \s+ $string /x) { $arg = unquote($1); print " addpath $arg\n" if $debug; push @output, "##! addpath \"$arg\""; push @{$Rpath}, splitPath($arg); - } elsif (m/^ \s* path \s+ $string /ox) { + } elsif (m/^ \s* path \s+ $string /x) { $arg = unquote($1); print " path $arg\n" if $debug; push @output, "##! path \"$arg\"";