summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-11 20:45:25 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-11 20:45:25 +0000
commite5c9230b351ebfad576c96aaad7956a213f28099 (patch)
treeb5356e90113ce859b7fdca34c6907b5140149e54
parent26a6d142dd736feafc347651c22360b5d5574734 (diff)
downloadrdiff-backup-e5c9230b351ebfad576c96aaad7956a213f28099.tar.gz
Now FAQ.html and FAQ.wml are both built from FAQ-body.html
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@118 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/FAQ-body.html (renamed from rdiff-backup/FAQ.html)32
-rwxr-xr-xrdiff-backup/dist/makedist36
-rwxr-xr-xrdiff-backup/dist/makeweb2
3 files changed, 44 insertions, 26 deletions
diff --git a/rdiff-backup/FAQ.html b/rdiff-backup/FAQ-body.html
index afd2b83..00962b8 100644
--- a/rdiff-backup/FAQ.html
+++ b/rdiff-backup/FAQ-body.html
@@ -1,13 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <title>rdiff-backup FAQ</title>
- </head>
-
- <body>
- <h1>rdiff-backup FAQ</h1>
-
-<h2>Table of contents</h2>
+<h3>Table of contents</h3>
<ol><li><a href="#__future__">When I try to run rdiff-backup it says
"ImportError: No module named __future__" or "SyntaxError: invalid
@@ -21,11 +12,11 @@ syntax". What's happening?</a></li>
<li><a href="#redhat">How do I install the RPMs on Redhat linux system?</a></li>
-<li><a href="#solaris">Under Solaris, rdiff-backup keeps failing with the error message "open(/dev/zero): Too many open files".</a></li>
+<li><a href="#solaris">Does rdiff-backup work under Solaris?</a></li>
</ol>
-<h2>FAQ</h2>
+<h3>Questions and Answers</h3>
<ol>
@@ -176,11 +167,11 @@ it is usually easier to use source RPMs for this.
<P>
<a name="solaris">
-<li><strong>Under Solaris, rdiff-backup keeps failing with
-the error message "open(/dev/zero): Too many open files".</strong>
+<li><strong>Does rdiff-backup work under Solaris?</strong>
-<P>Kevin Spicer reported this problem and then posted the following
-update:
+<P>There may be a problem with rdiff-backup and Solaris' libthread.
+Adding "ulimit -n unlimited" may fix the problem though. Here is a
+post by Kevin Spicer on the subject:
<pre>
Subject: RE: Crash report....still not^H^H^H working
@@ -208,16 +199,7 @@ machine. As for the /dev/zero thing I've done a bit of Googleing and
it seems that /dev/zero is used internally by libthread on Solaris
(which doesn't really explain why its opening more than 64 files - but
at least I think I've now got round it).
-
</pre>
</li>
</ol>
- <hr>
- <a href="http://www.stanford.edu/~bescoto">Ben Escoto</a> <address><a href="mailto:bescoto@stanford.edu">&lt;bescoto@stanford.edu&gt;</a></address>
-<!-- Created: Fri Sep 7 15:34:45 PDT 2001 -->
-<!-- hhmts start -->
-Last modified: Sat May 11 19:26:17 PDT 2002
-<!-- hhmts end -->
- </body>
-</html>
diff --git a/rdiff-backup/dist/makedist b/rdiff-backup/dist/makedist
index a23fca3..89dd241 100755
--- a/rdiff-backup/dist/makedist
+++ b/rdiff-backup/dist/makedist
@@ -33,6 +33,40 @@ def CopyMan(destination, version):
fp.close()
infp.close()
+def MakeFAQ():
+ """Create FAQ.html and FAQ.wml files from FAQ-body.html"""
+ faqbody_fp = open("FAQ-body.html", "r")
+ faqbody_string = faqbody_fp.read()
+ faqbody_fp.close()
+
+ wml_fp = open("FAQ.wml", "w")
+ wml_fp.write(
+"""#include 'template.wml' curpage=faq title="rdiff-backup: FAQ"
+
+<divert body>
+<p><h2>FAQ:</h2>
+
+""")
+ wml_fp.write(faqbody_string)
+ wml_fp.write("\n</divert>\n")
+ wml_fp.close()
+
+ html_fp = open("FAQ.html", "w")
+ html_fp.write(
+"""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+ <head>
+ <title>rdiff-backup FAQ</title>
+ </head>
+
+ <body>
+ <h1>rdiff-backup FAQ</h1>
+""")
+ html_fp.write(faqbody_string)
+ html_fp.write("\n</body></html>")
+ html_fp.close()
+
def MakeTar(version):
"""Create rdiff-backup tar file"""
tardir = "rdiff-backup-%s" % version
@@ -72,6 +106,8 @@ def Main():
assert not os.system("./Make")
os.chdir(cwd)
version = GetVersion()
+ print "Making FAQ"
+ MakeFAQ()
print "Processing version " + version
tarfile = MakeTar(version)
print "Made tar file " + tarfile
diff --git a/rdiff-backup/dist/makeweb b/rdiff-backup/dist/makeweb
index c9a2292..40e6e9b 100755
--- a/rdiff-backup/dist/makeweb
+++ b/rdiff-backup/dist/makeweb
@@ -17,7 +17,7 @@ webprefix = "/home/ben/misc/html/mirror/rdiff-backup/"
RunCommand("cp *%s* %s" % (version, webprefix))
RunCommand("rman -f html -r '' rdiff-backup.1 > %srdiff-backup.1.html"
% webprefix)
-RunCommand("cp FAQ.html CHANGELOG src/rdiff-backup %s" % webprefix)
+RunCommand("cp FAQ.wml CHANGELOG src/rdiff-backup %s" % webprefix)
os.chdir(webprefix)