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/user/SConstruct | |
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/user/SConstruct')
-rw-r--r-- | doc/user/SConstruct | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/doc/user/SConstruct b/doc/user/SConstruct index 5d36a5e..701fb7b 100644 --- a/doc/user/SConstruct +++ b/doc/user/SConstruct @@ -60,14 +60,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-user.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-user.epub', 'OEBPS', ZIPFLAGS='-Xr9D') - env.Clean(oebps, Glob('OEBPS/*.*')) - env.Clean(oebps, Glob('META-INF/*.*')) + epub = env.DocbookEpub('scons-user.epub', 'scons_db.xml', xsl='epub.xsl') + env.Depends(epub, jpg) |