xcompile: Use local variables and make cosmetic changes
commitd2cb1f93fb9c911a386d12bd9cb1a86e3b7767fa
authorVadim Bendebury <vbendeb@chromium.org>
Sat, 25 Apr 2015 20:15:58 +0000 (25 13:15 -0700)
committerVadim Bendebury <vbendeb@chromium.org>
Tue, 28 Apr 2015 01:13:01 +0000 (28 03:13 +0200)
treef820a393e9d7bfa476808db7c0a97ceeb0ecb5ea
parente46960246139fbf53e34de9288e654da900db63b
xcompile: Use local variables and make cosmetic changes

Declaring function variables local improves bash scripts' robustness.

Cosmetic changes among other things include renaming variables from
plural to singular and vice versa as appropriate, and replacing spaces
with tabs.

Tested by confirming that sorted output generated by
util/xcompile/xcompile is the same before and after the change.

Change-Id: I7305b3a4e45478ed3653b7d915dde4f83965f6c1
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/9996
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
util/xcompile/xcompile