diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-12-21 00:24:25 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-12-21 00:24:25 (GMT) |
commit | a9edc15a5ac66ba8794e66e8e9c0a1f926009220 (patch) | |
tree | 0a43edac19dbeb2682f2ae84813e1c3fafcdf877 /doc/man | |
parent | 2d4664140f8eb4b2c28c7f7ea72b904093c3ac16 (diff) | |
download | SCons-a9edc15a5ac66ba8794e66e8e9c0a1f926009220.zip SCons-a9edc15a5ac66ba8794e66e8e9c0a1f926009220.tar.gz SCons-a9edc15a5ac66ba8794e66e8e9c0a1f926009220.tar.bz2 |
- added EPUB Builder to the DocBook Tool, based on the work of Andrew Featherstone
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/SConstruct | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/doc/man/SConstruct b/doc/man/SConstruct index cfdbb2d..927bfa2 100644 --- a/doc/man/SConstruct +++ b/doc/man/SConstruct @@ -62,14 +62,7 @@ if env.WhereIs('gs'): # Create the EPUB format # if has_gs and has_pdf: - metainf = env.Command('META-INF','',[Mkdir('META-INF'), Mkdir('OEBPS')]) - css = env.Command('OEBPS/epub.css','epub.css',[Copy('OEBPS/epub.css','epub.css')]) - env.Depends(css, metainf) jpg = env.Gs('OEBPS/cover.jpg','scons-scons.pdf', GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -dJPEGQ=100 -r72x72 -q') - env.Depends(jpg, metainf) - oebps = env.DocbookXslt('OEBPS/toc.ncx', 'scons_db.xml', xsl='epub.xsl') - env.Depends(oebps, jpg) - env.Zip('scons-man.epub', 'OEBPS', ZIPFLAGS='-Xr9D') - env.Clean(oebps, Glob('OEBPS/*.*')) - env.Clean(oebps, Glob('META-INF/*.*')) + epub = env.DocbookEpub('scons-man.epub', 'scons_db.xml', xsl='epub.xsl') + env.Depends(epub, jpg) |