From b2bc95d8b8462ad2764fd32eff64d3d160619413 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Fri, 12 Jan 2001 23:20:47 +0000 Subject: [PATCH] Added epicshostarch to command line for RELEASE files --- configure/tools/makeConfigAppInclude.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure/tools/makeConfigAppInclude.pl b/configure/tools/makeConfigAppInclude.pl index 3b23de769..477573026 100644 --- a/configure/tools/makeConfigAppInclude.pl +++ b/configure/tools/makeConfigAppInclude.pl @@ -5,9 +5,10 @@ eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- use Cwd; -$arch = $ARGV[0]; -$outfile = $ARGV[1]; -$top = $ARGV[2]; +$hostarch = $ARGV[0]; +$arch = $ARGV[1]; +$outfile = $ARGV[2]; +$top = $ARGV[3]; unlink("${outfile}"); open(OUT,">${outfile}") or die "$! opening ${outfile}"; @@ -16,7 +17,7 @@ print OUT "#This file is created during the build.\n"; @files =(); push(@files,"$top/configure/RELEASE"); -push(@files,"$top/configure/RELEASE.${arch}"); +push(@files,"$top/configure/RELEASE.${hostarch}"); foreach $file (@files) { if (-r "$file") { open(IN, "$file") or die "Cannot open $file\n"; @@ -24,6 +25,7 @@ foreach $file (@files) { next if ( $line =~ /\s*#/ ); chomp($line); $line =~ s/[ ]//g; # remove blanks and tabs + next if ( $line =~ /^$/ ); # skip empty lines $_ = $line; #the following looks for # prefix = $(macro)post @@ -60,5 +62,3 @@ foreach $file (@files) { close IN; } } -close OUT; -