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('.'):
|
|
|
|
print 'installation beginning'
|
|
|
|
else:
|
|
|
|
print 'installation beginning'
|
|
|
|
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')
|
2015-07-05 16:57:48 +08:00
|
|
|
print '--------------------------------------'
|
2016-05-05 18:52:53 +08:00
|
|
|
print 'Finishing DSurfTomo compiling'
|
2015-07-05 16:57:48 +08:00
|
|
|
print '--------------------------------------'
|