Download this file
36 lines (29 with data), 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | #!/usr/bin/env python
import os, sys
def clean():
print 'cleaning...'
os.system('rm -f *.bbl *.blg *.dvi *.log *.toc *.aux *.tex *.out *~ #*')
os.system('rm -f examples/*~ examples/*.pyc')
def pdf():
print 'making pdf'
#os.system('lyx -e pdf main.lyx')
os.system('./lyxport2 --pdf main')
def ps():
print 'making ps'
#os.system('lyx -e pdf main.lyx')
os.system('./lyxport2 --ps main')
def dist():
clean()
pdf()
clean()
try:
os.symlink('main.pdf','practical_scicomp_py.pdf')
except OSError:
pass
for arg in sys.argv[1:]:
try:
exec arg
except NameError:
raise NameError('Unrecognized command "%s"' % arg)
else:
exec arg+'()'
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.