From f090892f5508450f3da26b9f582b281f86c5a743 Mon Sep 17 00:00:00 2001 From: allen Date: Fri, 17 Nov 2000 09:58:21 +0000 Subject: Remove spaces from ends of lines in options file git-svn-id: http://svn.cactuscode.org/flesh/trunk@1892 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/setup_configuration.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/make/setup_configuration.pl b/lib/make/setup_configuration.pl index c612b156..e0b8999b 100755 --- a/lib/make/setup_configuration.pl +++ b/lib/make/setup_configuration.pl @@ -142,6 +142,9 @@ sub SetConfigureEnv #Ignore comments. s/\#(.*)$//g; + #Remove spaces at end of lines + s/\s*$//; + s/\n//g; # Different from chop... #Ignore blank lines @@ -151,7 +154,7 @@ sub SetConfigureEnv # keyword value # or keyword = value m/\s*([^\s=]*)([\s]*=?\s*)(.*)\s*/; - + if($1 && $2) { print "Setting $1 to '$3'\n"; -- cgit v1.2.3