Author: manuel
Date: 2007-07-07 10:12:44 -0600 (Sat, 07 Jul 2007)
New Revision: 6852
Modified:
trunk/BOOK/Makefile
Log:
Changed TMPDIR by RENDERTMP.
Modified: trunk/BOOK/Makefile
===================================================================
--- trunk/BOOK/Makefile 2007-07-07 15:59:58 UTC (rev 6851)
+++ trunk/BOOK/Makefile 2007-07-07 16:12:44 UTC (rev 6852)
@@ -7,7 +7,7 @@
# Adjust these to suit your installation
BASEDIR= $(HOME)/public_html/blfs-book-xsl
DUMPDIR= $(HOME)/blfs-commands
-TMPDIR= $(HOME)/tmp
+RENDERTMP= $(HOME)/tmp
CHUNK_QUIET=1
ROOT_ID=""
PDF_OUTPUT=BLFS-BOOK.pdf
@@ -23,7 +23,7 @@
@echo "Generating chunked XHTML files..."
$(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
-stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \
- stylesheets/blfs-chunked.xsl $(TMPDIR)/blfs-html.xml
+ stylesheets/blfs-chunked.xsl $(RENDERTMP)/blfs-html.xml
@echo "Copying CSS code and images..."
$(Q)if [ ! -e $(BASEDIR)/stylesheets ]; then \
@@ -48,25 +48,25 @@
pdf: validxml
@echo "Generating profiled XML for PDF..."
$(Q)xsltproc --nonet --stringparam profile.condition pdf \
- --output $(TMPDIR)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
- $(TMPDIR)/blfs-full.xml
+ --output $(RENDERTMP)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
+ $(RENDERTMP)/blfs-full.xml
@echo "Generating FO file..."
$(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
- --output $(TMPDIR)/blfs-pdf.fo stylesheets/blfs-pdf.xsl
$(TMPDIR)/blfs-pdf.xml
- $(Q)sed -i -e 's/span="inherit"/span="all"/' $(TMPDIR)/blfs-pdf.fo
+ --output $(RENDERTMP)/blfs-pdf.fo stylesheets/blfs-pdf.xsl
$(RENDERTMP)/blfs-pdf.xml
+ $(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/blfs-pdf.fo
@echo "Generating PDF file..."
$(Q)if [ ! -e $(BASEDIR) ]; then \
mkdir -p $(BASEDIR); \
fi;
- $(Q)fop $(TMPDIR)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
+ $(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
nochunks: validxml profile-html
@echo "Generating non chunked XHTML file..."
$(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
--output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
- stylesheets/blfs-nochunks.xsl $(TMPDIR)/blfs-html.xml
+ stylesheets/blfs-nochunks.xsl $(RENDERTMP)/blfs-html.xml
@echo "Running Tidy..."
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
@@ -76,41 +76,41 @@
$(BASEDIR)/$(NOCHUNKS_OUTPUT)
tmpdir:
- @echo "Creating and cleaning $(TMPDIR)
- $(Q)[ -d $(TMPDIR) ] || mkdir -p $(TMPDIR)
- $(Q)rm -f $(TMPDIR)/blfs-{full,html,pdf,fo,}.xml
- $(Q)rm -f $(TMPDIR)/blfs-{patch-list,patches}
+ @echo "Creating and cleaning $(RENDERTMP)
+ $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
+ $(Q)rm -f $(RENDERTMP)/blfs-{full,html,pdf,fo,}.xml
+ $(Q)rm -f $(RENDERTMP)/blfs-{patch-list,patches}
validxml: tmpdir
@echo "Validating the book..."
$(Q)xmllint --nonet --noent --xinclude --postvalid \
- -o ~$(TMPDIR)/blfs-full.xml index.xml
+ -o ~$(RENDERTMP)/blfs-full.xml index.xml
profile-html: validxml
@echo "Generating profiled XML for XHTML..."
$(Q)xsltproc --nonet --stringparam profile.condition html \
- --output $(TMPDIR)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \
- $(TMPDIR)/blfs-full.xml
+ --output $(RENDERTMP)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \
+ $(RENDERTMP)/blfs-full.xml
blfs-patch-list: validxml
@echo "Generating blfs-patch-list..."
- $(Q)xsltproc --nonet --output $(TMPDIR)/blfs-patch-list \
- stylesheets/patcheslist.xsl $(TMPDIR)/blfs-full.xml
- $(Q)sed -e "s|^.*/||" $(TMPDIR)/blfs-patch-list > $(TMPDIR)/blfs-patches
- $(Q)sort $(TMPDIR)/blfs-patches > blfs-patch-list
+ $(Q)xsltproc --nonet --output $(RENDERTMP)/blfs-patch-list \
+ stylesheets/patcheslist.xsl $(RENDERTMP)/blfs-full.xml
+ $(Q)sed -e "s|^.*/||" $(RENDERTMP)/blfs-patch-list >
$(RENDERTMP)/blfs-patches
+ $(Q)sort $(RENDERTMP)/blfs-patches > blfs-patch-list
wget-list: validxml
@echo "Generating wget list..."
$(Q)mkdir -p $(BASEDIR)
$(Q)xsltproc --nonet --output $(BASEDIR)/wget-list \
- stylesheets/wget-list.xsl $(TMPDIR)/blfs-full.xml
+ stylesheets/wget-list.xsl $(RENDERTMP)/blfs-full.xml
test-links: validxml
@echo "Generating test-links file..."
$(Q)mkdir -p $(BASEDIR)
$(Q)xsltproc --nonet --stringparam list_mode full \
--output $(BASEDIR)/test-links stylesheets/wget-list.xsl \
- $(TMPDIR)/blfs-full.xml
+ $(RENDERTMP)/blfs-full.xml
@echo "Checking URLs, first pass..."
$(Q)rm -f $(BASEDIR)/{good,bad,true_bad}_urls
@@ -132,7 +132,7 @@
dump-commands: validxml
@echo "Dumping book commands..."
$(Q)xsltproc --output $(DUMPDIR)/ \
- stylesheets/dump-commands.xsl $(TMPDIR)/blfs-full.xml
+ stylesheets/dump-commands.xsl $(RENDERTMP)/blfs-full.xml
validate:
@echo "Validating the book..."
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page