install already prepared pdfs

This commit is contained in:
Eray Özkural
2005-11-18 13:06:43 +00:00
parent 2608d7af6a
commit 6a9a81ada3
+9 -14
View File
@@ -43,21 +43,16 @@ class Install(install):
pass
shutil.copy("po/%s.mo" % lang, os.path.join(destpath, "%s.mo" % i18n_domain))
def installdoc(self): #TODO: not decided if we have to
def installdoc(self):
destpath = os.path.join(self.root, "usr/share/doc/pisi")
try:
os.makedirs(destpath)
except:
pass
os.chdir('doc')
for tex in glob.glob('*.tex'):
print 'Compiling', tex
os.system('latex %s' % tex)
dvi = tex[:-3] + 'dvi'
ps = tex[:-3] + 'ps'
os.system('dvips %s -o %s' % (dvi, ps))
destpath = os.path.join(self.root, "usr/share/doc/pisi")
try:
os.makedirs(destpath)
except:
pass
print 'Installing', ps
shutil.copy(ps, os.path.join(destpath, ps))
for pdf in glob.glob('*.pdf'):
print 'Installing', pdf
shutil.copy(pdf, os.path.join(destpath, pdf))
os.chdir('..')
setup(name="pisi",