mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Augmented the script so that (at CNRI anyway) it also invokes webmaker
to create the HTML.
This commit is contained in:
parent
4323f7c7fd
commit
000eb0a138
1 changed files with 12 additions and 1 deletions
|
@ -4,14 +4,25 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
import string
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
files = ['ref.book'] + glob.glob('ref*.doc')
|
||||||
|
files.sort()
|
||||||
|
print "Files:", string.join(files)
|
||||||
|
print "Starting FrameMaker..."
|
||||||
pipe = os.popen("fmbatch", 'w')
|
pipe = os.popen("fmbatch", 'w')
|
||||||
for i in ['ref.book'] + glob.glob('ref*.doc'):
|
for i in files:
|
||||||
cmd = "Open %s\nSaveAs m %s %s.MIF\n" % (i, i, os.path.splitext(i)[0])
|
cmd = "Open %s\nSaveAs m %s %s.MIF\n" % (i, i, os.path.splitext(i)[0])
|
||||||
print cmd
|
print cmd
|
||||||
pipe.write(cmd)
|
pipe.write(cmd)
|
||||||
pipe.write("Quit\n")
|
pipe.write("Quit\n")
|
||||||
|
sts = pipe.close()
|
||||||
|
if sts:
|
||||||
|
print "Exit status", hex(sts)
|
||||||
|
else:
|
||||||
|
print "Starting webmaker..."
|
||||||
|
os.system('/depot/sundry/src/webmaker/webmaker-sparc/webmaker -c ref.wml -t "Python 1.5 Reference Manual" ref.MIF')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue