[svnbook commit] r1360 - in trunk/src: de/book tools
cmpilato
svnbook-dev at red-bean.com
Wed May 25 15:24:18 CDT 2005
Author: cmpilato
Date: Wed May 25 15:24:16 2005
New Revision: 1360
Added:
trunk/src/tools/build-nightlies (contents, props changed)
Modified:
trunk/src/de/book/ (props changed)
trunk/src/tools/Makefile.base
trunk/src/tools/book-dist.py
Log:
Build build and publish tweaks.
* src/tools/Makefile.base
(book-html): Make the html-book target depend on the presence of
the stylesheet and images.
* src/tools/book-dist.py
(main): Check for build dir existence before trying to rename it.
* src/tools/build-nightlies
New script (used on www.svnbook.com).
* src/de/book
Add 'version.xml' to svn:ignore.
Modified: trunk/src/tools/Makefile.base
==============================================================================
--- trunk/src/tools/Makefile.base (original)
+++ trunk/src/tools/Makefile.base Wed May 25 15:24:16 2005
@@ -74,7 +74,8 @@
fi
book-html: $(BOOK_HTML_TARGET)
-$(BOOK_HTML_TARGET): $(BOOK_ALL_SOURCE) $(BOOK_VERSION_SOURCE)
+$(BOOK_HTML_TARGET): $(BOOK_ALL_SOURCE) $(BOOK_VERSION_SOURCE) \
+ $(BOOK_DIR)/styles.css $(BOOK_IMAGES)
$(ENSURE_XSL)
$(XSLTPROC) $(BOOK_HTML_XSLTPROC_OPTS) --output $(BOOK_HTML_TARGET) \
$(TOOLS_DIR)/html-stylesheet.xsl $(BOOK_XML_SOURCE)
Modified: trunk/src/tools/book-dist.py
==============================================================================
--- trunk/src/tools/book-dist.py (original)
+++ trunk/src/tools/book-dist.py Wed May 25 15:24:16 2005
@@ -75,8 +75,9 @@
os.mkdir('__SVNBOOK_TMP__')
os.system('DESTDIR=__SVNBOOK_TMP__ make book-clean %s' \
% (' '.join(targets)))
- os.rename('__SVNBOOK_TMP__/usr/share/doc/subversion/book', name)
- os.system('tar cvfz %s.tar.gz %s' % (name, name))
+ if os.path.isdir('__SVNBOOK_TMP__/usr/share/doc/subversion/book'):
+ os.rename('__SVNBOOK_TMP__/usr/share/doc/subversion/book', name)
+ os.system('tar cvfz %s.tar.gz %s' % (name, name))
finally:
_cleanup_tmp_dirs()
More information about the svnbook-dev
mailing list