diff options
Diffstat (limited to 'rdiff-backup')
-rw-r--r-- | rdiff-backup/FAQ-body.html (renamed from rdiff-backup/FAQ.html) | 32 | ||||
-rwxr-xr-x | rdiff-backup/dist/makedist | 36 | ||||
-rwxr-xr-x | rdiff-backup/dist/makeweb | 2 |
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"><bescoto@stanford.edu></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) |