From 61faef5f93357ba2e0a82d16bea4ccdf6f5eec81 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Thu, 25 Jul 2002 20:45:42 +0000 Subject: [PATCH] Bug fix for spaces between macro and "=" sign; e.g. MPF = /home/mpf. --- config/makeConfigAppInclude.pl | 2 ++ config/makeIocCdCommands.pl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/makeConfigAppInclude.pl b/config/makeConfigAppInclude.pl index a1ee0750..f1f947e0 100644 --- a/config/makeConfigAppInclude.pl +++ b/config/makeConfigAppInclude.pl @@ -70,6 +70,8 @@ foreach $file (@files) { $post = $base . $post; } } + + $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. $applications{$prefix} = $post; if ( -d "$post") { #check that directory exists print OUT "\n"; diff --git a/config/makeIocCdCommands.pl b/config/makeIocCdCommands.pl index 87e10359..8637e478 100644 --- a/config/makeIocCdCommands.pl +++ b/config/makeIocCdCommands.pl @@ -72,6 +72,8 @@ foreach $file (@files) { $post = $base . $post; } } + + $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. $applications{$prefix} = $post; $app = lc($prefix); if ( -d "$post") { #check that directory exists