Commit Graph

5 Commits

Author SHA1 Message Date
Ben Swartzlander 95f2065167 Add -xe flags to shell scripts
For better debugging, add -xe flags to all the shell
scripts.

Change-Id: Ifb8ceb889c4d20d51a522e6c15d7c715f6d51e46
2017-10-27 13:39:23 -04:00
Ben Swartzlander 0358d1f175 Conform to bashate standards for control structures
Enable bashate errors E010 and E011 which require "then" and "do"
tokens on the same lines as "if" and "while" respectively.

Change-Id: I4a167530a21ab95d5dbe9f903facc9566a0461e2
2017-01-29 23:56:06 +00:00
Ben Swartzlander 6f370f0608 Convert tabs to spaces
Replace all tabs with 4 spaces, and re-enable bashate
warnings E002 and E003.

Change-Id: I11f3a9ca9b910555e1b1477c52288493f9bb0244
2017-01-29 18:55:19 -05:00
Ben Swartzlander 3c8053515a Install packages automatically on Ubuntu
For gate jobs, we need to automate the installing of
dependencies, so check if we're on Ubuntu and handle that
case automatically. Other distros can still use the script
but need to manually take care of dependencies.

Change-Id: Id2c6a815c018cdfe3b288c38c7033275f25d8f13
2017-01-27 19:59:07 -05:00
Ben Swartzlander 9d1694b9fd Split out one-time steps into their own script
Clarify the documentation on building
2016-10-19 14:59:38 -04:00