Commits

Anonymous committed e9891de

r6051@telaviv1: shlomi | 2008-08-05 15:26:28 +0300
Customised the "work-in-progress" warning in the XSLT stylesheet and
finaly XHTML to be optional and made sure only the appropriate documents
have it.

Comments (0)

Files changed (5)

 all: make-dirs docbook_targets latemp_targets fortunes-target sitemap_targets copy_fortunes site-source-install
 
 include lib/make/gmsl/gmsl
-	
+
 include include.mak
 include rules.mak
 
 $(DOCBOOK_RTF_DIR)/%.rtf: $(DOCBOOK_FO_DIR)/%.fo
 	fop -fo $< -rtf $@
 
-$(DOCBOOK_INDIVIDUAL_XHTML_DIR)/%: $(DOCBOOK_XML_DIR)/%.xml $(XSL_SOURCES)
-	$(DOCMAKE_WITH_PARAMS) --stringparam "docmake.output.format=xhtml" --stringparam "docmake.output.path_to_root="$(shell perl -e '$$_=shift;$$c=tr[/][];print "../"x($$c+2)' $(call get,DOCBOOK_DIRS_MAP,$(patsubst $(DOCBOOK_INDIVIDUAL_XHTML_DIR)/%,%,$@))) -x $(XHTML_XSLT_SS) -o $@ xhtml $< \
-	&& touch $@
-
 DOCMAKE_SGML_PATH = lib/sgml/shlomif-docbook
 DOCBOOK_MAK_MAKEFILES_PATH = lib/make/docbook
 

bin/gen-docbook-make-helpers.pl

         id => "dealing-with-hypomanias", 
         path => "philosophy/psychology/hypomanias/", 
         base => "dealing-with-hypomanias",
+        work_in_progress => 1,
     },
     {
         id => "end-of-it-slavery", 
     },
     
     {
-        id => "objectivism-and-open-source", 
-        path => "philosophy/obj-oss", 
+        id => "objectivism-and-open-source",
+        path => "philosophy/obj-oss",
         base => "objectivism-and-open-source",
     },
     
     {
-        id => "rindolf-spec", 
-        path => "rindolf", 
+        id => "rindolf-spec",
+        path => "rindolf",
         base => "rindolf-spec",
     },
     
     {
-        id => "the-eternal-jew", 
-        path => "philosophy/the-eternal-jew", 
+        id => "the-eternal-jew",
+        path => "philosophy/the-eternal-jew",
         base => "the-eternal-jew",
     },
     
         id => "perfect-it-workplace-rev2", 
         path =>  "philosophy/computers/software-management/perfect-workplace/rev2",
         base => "perfect-it-workplace-rev2",
+        work_in_progress => 1,
     },
     
     {
         id => "foss-licences-wars", 
         path => "philosophy/computers/open-source/foss-licences-wars", 
         base => "foss-licences-wars",
+        work_in_progress => 1,
     },
 );
 

lib/docbook/xml/perfect-it-workplace-rev2.xml

             wants them to be productive and happy. I hope this essay
             explained how.
         </para>
+        
     </section>
     <section id="thanks">
 

lib/make/docbook/sf-homepage-db-gen.tt

 $(T2_DEST)/[% d.path %]/[% d.base %]: $(DOCBOOK_INDIVIDUAL_XHTML_DIR)/[% d.base %]
 [% "\t" %]rsync -r -v $(DOCBOOK_INDIVIDUAL_XHTML_DIR)/$(notdir $@) $(dir $@)
 
+$(DOCBOOK_INDIVIDUAL_XHTML_DIR)/[% d.base %]: $(DOCBOOK_XML_DIR)/[% d.base %].xml $(XSL_SOURCES)
+[% "\t" %]$(DOCMAKE_WITH_PARAMS) \
+[% "\t\t" %]--stringparam "docmake.output.format=xhtml" \
+[% "\t\t" %]--stringparam "docmake.output.path_to_root=[% "../../" %]" \
+[% IF d.work_in_progress %][% "\t\t" %]--stringparam "docmake.output.work_in_progress=1" \
+[% END -%]
+[% "\t\t" %]-x $(XHTML_XSLT_SS) -o $@ xhtml $< \
+[% "\t" %]&& touch $@
+
 [% END %]

lib/sgml/shlomif-docbook/xsl-stylesheets/shlomif-essays.xsl

         </ul>
     </div>
     -->
+
     <div class="center ads_top">
     <script type="text/javascript">
 google_ad_client = "pub-2480595666283917";
   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 </script>
     </div>
+    <xsl:if test="docmake.output.work_in_progress">
     <div class="center warning">
         <p>
             <b>Note:</b> This document is work-in-progress. Please don't 
             without the author's permission. Private linking is acceptable.
         </p>
     </div>
+    </xsl:if>
 </xsl:template>
 
 </xsl:stylesheet>