IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6444


Ignore:
Timestamp:
Feb 16, 2006, 5:22:01 PM (20 years ago)
Author:
jhoblitt
Message:

fix config.pl slurping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/glueforge.in

    r6443 r6444  
    33# Copyright (C) 2005-2006  Joshua Hoblitt
    44#
    5 # $Id: glueforge.in,v 1.44 2006-02-17 03:17:56 jhoblitt Exp $
     5# $Id: glueforge.in,v 1.45 2006-02-17 03:22:01 jhoblitt Exp $
    66
    77use strict;
     
    5050$output = $data->{pkg_name} unless defined $output;
    5151
    52 my %tt;
     52my $ttconfig;
    5353{
    5454    # slurp config.pl
    5555    open(my $fh, "$template/config.pl")
    5656        or die "can't open $template/config.pl: $!";
    57     my $ttconfig = do {local $/; <$fh>};
     57    $ttconfig = do {local $/; <$fh>};
    5858    close($fh) or die "can't close $template/config.pl: $!";
    5959}
    6060
    6161# configure template file paths
     62my %tt;
    6263eval $ttconfig;
    6364die "can't eval contents of $template/config.pl: $@" if $@;
Note: See TracChangeset for help on using the changeset viewer.