mirror of
https://github.com/team2059/Zaphod
synced 2025-01-07 22:14:14 -05:00
Fixed build indentation
This commit is contained in:
parent
9ea1e385f1
commit
94ddbfea89
24
build
24
build
@ -8,32 +8,32 @@ RRIO_IPADDRESS = '10.20.59.2'
|
||||
|
||||
#Global functions for the actions
|
||||
def build():
|
||||
os.system('cd src && make && cd ..')
|
||||
os.system('cd src && make && cd ..')
|
||||
|
||||
def clean():
|
||||
os.system('cd src && make clean && cd ..')
|
||||
os.system('cd src && make clean && cd ..')
|
||||
|
||||
def deploy():
|
||||
command = 'cd bin && wput '+ ROBOT_NAME+'.out ftp://frc:frc@'+RRIO_IPADDRESS+'/ni-rt/system/FRC_UserProgram.out'
|
||||
os.system(command)
|
||||
command = 'cd bin && wput '+ ROBOT_NAME+'.out ftp://frc:frc@'+RRIO_IPADDRESS+'/ni-rt/system/FRC_UserProgram.out'
|
||||
os.system(command)
|
||||
|
||||
#Check that there is actually an action to perform
|
||||
if len(sys.argv) == 1:
|
||||
print("Requires an argument")
|
||||
exit()
|
||||
print("Requires an argument")
|
||||
exit()
|
||||
|
||||
#Bulk of the program that checks for the actions it needs to do
|
||||
|
||||
if sys.argv[1] == 'build':
|
||||
build()
|
||||
build()
|
||||
|
||||
if sys.argv[1] == 'clean':
|
||||
clean()
|
||||
clean()
|
||||
|
||||
if sys.argv[1] == 'buildclean':
|
||||
clean()
|
||||
build()
|
||||
clean()
|
||||
build()
|
||||
|
||||
if sys.argv[1] == 'deploy':
|
||||
deploy()
|
||||
# vim: ts=2:sw=2:et
|
||||
deploy()
|
||||
# vim: ts=4:sw=4:noet
|
||||
|
Loading…
x
Reference in New Issue
Block a user