DSurfTomo/configure

18 lines
517 B
Plaintext
Raw Permalink Normal View History

2015-07-05 16:57:48 +08:00
#!/usr/bin/env python
# this is a script to install surf_tomo and surf_tomo_syn in your system
# written by Hongjian Fang(fanghj@mail.ustc.edu.cn)
2015-07-05 16:57:48 +08:00
import os
if 'bin' in os.listdir('.'):
print ('Installation beginning')
2015-07-05 16:57:48 +08:00
else:
print ('Installation beginning')
os.mkdir('bin')
2015-07-05 16:57:48 +08:00
os.chdir('src')
os.system('make clean')
os.system('make')
2015-07-07 19:30:35 +08:00
os.system('cp DSurfTomo ../bin')
print ('--------------------------------------')
print ('DSurfTomo compiling Finished')
print ('--------------------------------------')