forked from openhome/ohdevtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo.py
More file actions
30 lines (25 loc) · 778 Bytes
/
go.py
File metadata and controls
30 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import commands.fetch_dependencies as fetch
import commands.hudson_build as build
import version
import sys
def main(aArgs):
version.check_version()
cmd = None
args = []
if len(aArgs) > 1:
cmd = aArgs[1]
# if len(aArgs) > 2:
# args = aArgs[2:]
if cmd in ('fetch', 'fetch-dependencies', 'fetch_dependencies'):
fetch.main()
elif cmd in ('build', 'ci-build', 'hudson_build'):
build.hudson_build()
else:
print('')
print('Usage:')
print(' go fetch: fetch dependencies specified by project')
print(' go build: perform automated build')
print(' go <command> --help: display command specific help page')
print('')
if __name__ == "__main__":
main(sys.argv)