Commits

Anonymous committed 386dfe1

Added the start of the File-Find-Document alternative.

Comments (0)

Files changed (3)

alternative-to-File-Find-document/Makefile

+DOC = alternatives-to-File-Find
+
+DEST_DIR = $(DOC)
+DEST_INDEX = $(DEST_DIR)/index.html
+
+all: html-xsl
+
+DOCMAKE_SGML_PATH = ./sgml/shlomif-docbook/
+
+XMLTO_PARAMS = --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)/%,%,$@)))"
+
+validate: $(DOC).xml
+	xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng $<
+
+html-xsl: $(DEST_INDEX) $(DOC)/style.css put-images
+
+$(DEST_INDEX): $(DOC).xml
+	xsltproc --path /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/xhtml -o $@ docbook.xsl $<
+
+$(DOC)/style.css: style.css
+	cp -f $< $@
+
+firefox: html-xsl
+	mozilla-firefox $(DEST_INDEX)
+
+upload: html-xsl
+	rsync -a -v --progress $(DEST_DIR) $${HOMEPAGE_SSH_PATH}/hebrew-html-tutorial-brk800/
+
+edit:
+	gvim $(DOC).xml style.css Summary.txt
+
+IMAGES_PROTO = 
+
+IMAGES = $(patsubst images/%,%,$(IMAGES_PROTO))
+
+DEST_IMAGES_DIR = $(DEST_DIR)/images
+
+DEST_IMAGES = $(addprefix $(DEST_IMAGES_DIR)/,$(IMAGES))
+
+put-images: $(DEST_IMAGES_DIR) $(DEST_IMAGES)
+
+$(DEST_IMAGES_DIR):
+	mkdir -p $@
+
+$(DEST_IMAGES) : $(DEST_IMAGES_DIR)/% : images/%
+	cp -f $< $@

alternative-to-File-Find-document/alternatives-to-File-Find.xml

+<?xml version='1.0' encoding='UTF-8' ?>
+<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="index" xml:lang="en">
+    <info>
+        <title>Alternatives to the Perl Core File::Find Module</title>
+        <author>
+            <personname>
+                <firstname>Shlomi</firstname>
+                <surname>Fish</surname>
+            </personname>
+            <affiliation>
+                <address>
+                    <email>shlomif@iglu.org.il</email>
+                </address>
+            </affiliation>
+        </author>
+        <copyright>
+            <year>2008</year>
+            <holder>Shlomi Fish</holder>
+        </copyright>
+        <legalnotice xml:lang="en">
+            <!-- Ci vis pacem -->
+            <para>
+                <!-- belum. ;-) -->
+                This document was written by Shlomi Fish and is available
+                under the terms of either the:
+            </para>
+            <orderedlist>
+                <listitem>
+                    <para>
+                        <link xlink:href="http://creativecommons.org/licenses/publicdomain/">The Public Domain</link>,
+                        as defined by the Creative Commons or your local
+                        jurisdication.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <link xlink:href="http://creativecommons.org/licenses/by/3.0/">The Creative Commons Attribution License (CC-by) version 3.0</link>
+                        (or at your option any later version of the same
+                        license.)
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        The 
+                        <link
+                            xlink:href="http://www.opensource.org/licenses/mit-license.php">MIT
+                            X11 License</link>.
+                    </para>
+                </listitem>
+            </orderedlist>
+        </legalnotice>
+        <revhistory>
+            <revision>
+                <revnumber>2780</revnumber>
+                <date>18 February 2009</date>
+                <authorinitials>shlomif</authorinitials>
+                <revremark>
+                    Started working on this document after forking the template
+                    of an older one.
+                </revremark>
+            </revision>
+        </revhistory>
+    </info>
+
+    <section xml:id="limitations-of-File-Find">
+        <info>
+            <title>The Limitations of File::Find</title>
+        </info>
+    </section>
+</article>

alternative-to-File-Find-document/style.css

+a:hover { background-color : palegreen; }
+:lang(he)
+{ 
+    font-family: David; 
+    text-align:right;
+    direction:rtl;
+}
+:lang(en)
+{ 
+    font-family: Times New Roman, Times, Serif;
+    text-align:left;
+    direction: ltr;
+    unicode-bidi: embed;
+}
+pre.programlisting
+{
+    font-family: Courier New, Courier;
+    font-size:10pt;
+    border: green solid 3pt;
+    padding: 0.5em;
+}