diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-11-17 09:58:21 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-11-17 09:58:21 +0000 |
commit | f090892f5508450f3da26b9f582b281f86c5a743 (patch) | |
tree | ec6850b36c2428d2f50c569b735ce00bbca7cead /lib | |
parent | a669f70579f7a935daf956d68f6e28a245b2b8f9 (diff) |
Remove spaces from ends of lines in options file
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1892 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/make/setup_configuration.pl | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |