Commits

Anonymous committed 03b2169

r4068@telaviv1: shlomi | 2007-05-21 22:33:33 +0300
Now copying the sources of the screenplays to the dest dir, and linking to them with a reference to XML::Grammar::Screenplay.

Comments (0)

Files changed (5)

 
 SCREENPLAY_TARGETS = $(patsubst %,lib/docbook/rendered/%.html,$(SCREEPLAY_DOCS))
 
-ST_WTLD_TEXT_IN_TREE = $(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt
+SCREENPLAY_SOURCES_ON_DEST = $(T2_DEST)/humour/TOWTF/TOW_Fountainhead_1.txt $(T2_DEST)/humour/TOWTF/TOW_Fountainhead_2.txt $(T2_DEST)/humour/humanity/Humanity-Movie.txt $(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt
 
-docbook_targets: $(DOCBOOK_TARGETS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS)
+docbook_targets: $(DOCBOOK_TARGETS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS) $(SCREENPLAY_SOURCES_ON_DEST)
 
 lib/docbook/rendered/%.html: lib/docbook/essays/%/all-in-one.html
 	./bin/clean-up-docbook-xsl-xhtml.pl -o $@ $<
 	$(XMLTO) --stringparam "docmake.output.format=xhtml" -m $(XHTML_ONE_CHUNK_XSLT_SS) -o $(patsubst lib/docbook/essays/%/all-in-one.html,lib/docbook/essays/%,$@) xhtml $<
 	mv $(patsubst %/all-in-one.html,%/index.html,$@) $@
 
-$(ST_WTLD_TEXT_IN_TREE): lib/screenplay-xml/txt/star-trek--we-the-living-dead.txt
+$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_1.txt: lib/screenplay-xml/txt/TOW_Fountainhead_1.txt
+	cp -f $< $@
+
+$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_2.txt: lib/screenplay-xml/txt/TOW_Fountainhead_2.txt
+	cp -f $< $@
+
+$(T2_DEST)/humour/humanity/Humanity-Movie.txt: lib/screenplay-xml/txt/Humanity-Movie.txt
+	cp -f $< $@
+
+$(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt: lib/screenplay-xml/txt/star-trek--we-the-living-dead.txt
 	cp -f $< $@
 
 %.show:
 </div>
 </define-tag>
 
+<define-tag link_to_screenplay>
+<preserve base desc />
+<set-var %attributes />
+<a href="<get-var base />.txt"><get-var desc />Source in text format</a> 
+(requires
+<a href="http://search.cpan.org/dist/XML-Grammar-Screenplay/">XML-Grammar-Screenplay</A> 
+to render)
+<restore base desc />
+</define-tag>
+

t2/humour/Star-Trek/We-the-Living-Dead/index.html.wml

 #include '../template.wml'
+#include "utils.wml"
 
 <latemp_subject "Star Trek: &quot;We, the Living Dead&quot;" />
 
 <a href="ongoing-text.html"><b>HTML</b></a>
 </li>
 <li>
-<a href="star-trek--we-the-living-dead.txt">Screenplay source in well-formed 
-text format</a>
+<link_to_screenplay base="star-trek--we-the-living-dead" />
 </li>
 </ul>
 

t2/humour/TOWTF/index.html.wml

 a two part episode of "Friends". Enjoy!
 </p>
 
+<h2 id="read_online">Read Online</h2>
+
 <ul>
 <li>
-<a href="TOW_Fountainhead_1.html">The One with the Fountainhead - Part 1</a>
+<a href="TOW_Fountainhead_1.html"><b>The One with the Fountainhead - Part 1</b></a>
 </li>
 <li>
-<a href="TOW_Fountainhead_2.html">The One with the Fountainhead - Part 2</a>
+<a href="TOW_Fountainhead_2.html"><b>The One with the Fountainhead - Part 2</b></a>
 </li>
 </ul>
 
-<h2>Links</h2>
+<h2 id="sources">Sources</h2>
 
-<h3>Other Parodies of Ayn Rand's Works</h3>
+<ul>
+<li>
+<link_to_screenplay base="TOW_Fountainhead_1" desc="Part 1 - " />
+</li>
+<li>
+<link_to_screenplay base="TOW_Fountainhead_2" desc="Part 2 - " />
+</li>
+</ul>
+
+<h2 id="links">Links</h2>
+
+<h3 id="other_ayn_rand_parodies">Other Parodies of Ayn Rand's Works</h3>
 
 <ul>
 <li>
 </li>
 </ul>
 
-<h3>Friends-related</h3>
+<h3 id="friends_links">Friends-related</h3>
 
 <ul>
 <li>

t2/humour/humanity/index.html.wml

 
 <latemp_subject "Humanity - The Movie" />
 
-<h2 id="text"><a href="ongoing-text.html">The Ongoing Text</a></h2>
-
 <h2 id="intro">Introduction</h2>
 
 <p>
 (ok - an altar with a priest), the Bazaar, the Well, the Wall, etc.
 </p>
 
+<h2 id="read_online">The Text</h2>
+
+<ul>
+<li>
+<a href="ongoing-text.html">The Ongoing Text - <b>Read Online</b></a>
+</li>
+<li>
+<link_to_screenplay base="Humanity-Movie" />
+</li>
+</ul>
+
 <h2 id="links">Links</h2>
 
 <ul>