2
0
mirror of https://github.com/team2059/Zaphod synced 2025-01-07 22:14:14 -05:00

Fixed build indentation

This commit is contained in:
Austen Adler 2014-09-07 15:16:52 -04:00
parent 9ea1e385f1
commit 94ddbfea89

24
build
View File

@ -8,32 +8,32 @@ RRIO_IPADDRESS = '10.20.59.2'
#Global functions for the actions #Global functions for the actions
def build(): def build():
os.system('cd src && make && cd ..') os.system('cd src && make && cd ..')
def clean(): def clean():
os.system('cd src && make clean && cd ..') os.system('cd src && make clean && cd ..')
def deploy(): def deploy():
command = 'cd bin && wput '+ ROBOT_NAME+'.out ftp://frc:frc@'+RRIO_IPADDRESS+'/ni-rt/system/FRC_UserProgram.out' command = 'cd bin && wput '+ ROBOT_NAME+'.out ftp://frc:frc@'+RRIO_IPADDRESS+'/ni-rt/system/FRC_UserProgram.out'
os.system(command) os.system(command)
#Check that there is actually an action to perform #Check that there is actually an action to perform
if len(sys.argv) == 1: if len(sys.argv) == 1:
print("Requires an argument") print("Requires an argument")
exit() exit()
#Bulk of the program that checks for the actions it needs to do #Bulk of the program that checks for the actions it needs to do
if sys.argv[1] == 'build': if sys.argv[1] == 'build':
build() build()
if sys.argv[1] == 'clean': if sys.argv[1] == 'clean':
clean() clean()
if sys.argv[1] == 'buildclean': if sys.argv[1] == 'buildclean':
clean() clean()
build() build()
if sys.argv[1] == 'deploy': if sys.argv[1] == 'deploy':
deploy() deploy()
# vim: ts=2:sw=2:et # vim: ts=4:sw=4:noet