Download this file
27 lines (21 with data), 593 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 | #!/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')
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.