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)
|
2020-04-17 08:47:03 +08:00
|
|
|
|
2015-07-05 16:57:48 +08:00
|
|
|
import os
|
|
|
|
if 'bin' in os.listdir('.'):
|
2020-04-17 08:47:03 +08:00
|
|
|
print ('Installation beginning')
|
2015-07-05 16:57:48 +08:00
|
|
|
else:
|
2020-04-17 08:47:03 +08:00
|
|
|
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')
|
2020-04-17 08:47:03 +08:00
|
|
|
print ('--------------------------------------')
|
|
|
|
print ('DSurfTomo compiling Finished')
|
|
|
|
print ('--------------------------------------')
|