Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Ada/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking ' + root
print('Checking ' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions C++/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking' + root
print('Checking' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions C/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking' + root
print('Checking' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions CSharp/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking' + root
print('Checking' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions Chapel/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking ' + root
print('Checking ' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions Dart/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking' + root
print('Checking' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions Erlang/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking' + root
print('Checking' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
16 changes: 8 additions & 8 deletions Fortran/compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def file_exists(file_path):

def main():
for root, dirs, files in os.walk(path):
print 'Checking ' + root
print('Checking ' + root)
makefile = os.path.join(root, "Makefile")
if file_exists(makefile):
cmd = 'cd ' + root + '; make ' + action
Expand All @@ -24,29 +24,29 @@ def main():
if pipes.returncode != 0:
# an error happened!
err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode)
print '[E] Error on ' + root + ': '
print err_msg
print('[E] Error on ' + root + ': ')
print(err_msg)
elif len(std_err):
# return code is 0 (no error), but we may want to
# do something with the info on std_err
# i.e. logger.warning(std_err)
print '[OK]'
print('[OK]')
else:
print '[OK]'
print('[OK]')
if action == 'measure':
call(['sleep', '5'])

if __name__ == '__main__':
if len(sys.argv) == 2:
act = sys.argv[1]
if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'):
print 'Performing \"' + act + '\" action...'
print('Performing \"' + act + '\" action...')
action = act
else:
print 'Error: Unrecognized action \"' + act + '\"'
print('Error: Unrecognized action \"' + act + '\"')
sys.exit(1)
else:
print 'Performing \"compile\" action...'
print('Performing \"compile\" action...')
action = 'compile'

main()
Expand Down
Loading