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)
|
|
|
|
import os
|
|
|
|
if 'bin' in os.listdir('.'):
|
2019-06-26 15:55:38 +08:00
|
|
|
print('installation beginning')
|
2015-07-05 16:57:48 +08:00
|
|
|
else:
|
2019-06-26 15:55:38 +08:00
|
|
|
print('installation beginning')
|
2015-07-05 16:57:48 +08:00
|
|
|
os.mkdir('bin')
|
|
|
|
os.chdir('src')
|
|
|
|
os.system('make clean')
|
|
|
|
os.system('make')
|
2015-07-07 19:30:35 +08:00
|
|
|
os.system('cp DSurfTomo ../bin')
|
2019-06-26 15:55:38 +08:00
|
|
|
print('--------------------------------------')
|
|
|
|
print('Finishing DSurfTomo compiling')
|
|
|
|
print('--------------------------------------')
|