summaryrefslogtreecommitdiff
path: root/rdiff-backup/dist/makedist
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 /rdiff-backup/dist/makedist
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
Diffstat (limited to 'rdiff-backup/dist/makedist')
-rwxr-xr-xrdiff-backup/dist/makedist36
1 files changed, 36 insertions, 0 deletions
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