Author: loonycyborg
Date: Fri Apr 11 12:34:37 2008
New Revision: 25742

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25742&view=rev
Log:
Extended "Making the manual" section of SConstruct.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25742&r1=25741&r2=25742&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Fri Apr 11 12:34:37 2008
@@ -1213,7 +1213,7 @@
 #
 deletions = map(lambda x: Delete(os.path.join(bindir, str(x[0]))), clientside 
+ daemons) \
             + [Delete(datadir), Delete(pythonlib), Delete(fifodir), 
Delete(docdir)] \
-            + map(lambda x: Delete(os.path.join(mandir, "man6", x)), [ 
"wesnoth.6", "wesnoth_editor.6" ]) \
+            + map(lambda x: Delete(os.path.join(mandir, "man6", x)), [ 
"wesnoth.6", "wesnoth_editor.6", "wesnothd.6" ]) \
             + Flatten(map(lambda mandir : map(lambda x: 
Delete(os.path.join(mandir, x)), [ "wesnoth.6", "wesnoth_editor.6", 
"wesnothd.6" ]), localized_man_dirs.values()))
 uninstall = env.Command('uninstall', '', deletions)
 env.AlwaysBuild(uninstall)
@@ -1222,10 +1222,20 @@
 #
 # Making the manual
 #
-env.Command("manual.en.xml", "doc/manual/manual.txt",
-       "asciidoc -b docbook -d book -n -a toc -o ${TARGET} ${SOURCE}")
-env.Command("manual.en.html", "manual.en.xml",
-       'xsltproc --nonet /etc/asciidoc/docbook-xsl/xhtml.xsl "${SOURCE}" 
>"${TARGET}"')
+if "manual" in COMMAND_LINE_TARGETS:
+    env.Command("doc/manual/manual.en.xml", "doc/manual/manual.txt",
+       "asciidoc -b docbook -d book -n -a toc -o $TARGET $SOURCE && dos2unix 
$TARGET")
+    env.Command("doc/manual/manual.en.html", "doc/manual/manual.en.xml",
+       """xsltproc --nonet \
+        --stringparam callout.graphics 0 \
+        --stringparam navig.graphics 0 \
+        --stringparam admon.textlabel 1 \
+        --stringparam admon.graphics 0 \
+        --stringparam html.stylesheet ./styles/manual.css \
+        /etc/asciidoc/docbook-xsl/xhtml.xsl \
+        $SOURCE > $TARGET \
+        """)
+    env.Alias("manual", "doc/manual/manual.en.html")
 
 #
 # Making a distribution tarball.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to