summaryrefslogtreecommitdiff
path: root/rdiff-backup/dist/makeweb
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-24 00:31:35 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-24 00:31:35 +0000
commit6cdc127cbe24ef2e1f1e3a137eee733fa64c9e32 (patch)
tree7a4b2796b27d8e46a13ab2231d8a170d9afb68e8 /rdiff-backup/dist/makeweb
parent7b7cfcdf6534883314fa50d28c03b87ffb214b49 (diff)
downloadrdiff-backup-6cdc127cbe24ef2e1f1e3a137eee733fa64c9e32.tar.gz
..?
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@170 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makeweb')
-rwxr-xr-xrdiff-backup/dist/makeweb19
1 files changed, 10 insertions, 9 deletions
diff --git a/rdiff-backup/dist/makeweb b/rdiff-backup/dist/makeweb
index a919cec..5d3adf3 100755
--- a/rdiff-backup/dist/makeweb
+++ b/rdiff-backup/dist/makeweb
@@ -6,15 +6,15 @@ def RunCommand(cmd):
print cmd
os.system(cmd)
-if not sys.argv[1:]:
- print 'Call with version number, as in "./makeweb 0.3.1"'
- sys.exit(1)
-
-version = sys.argv[1]
webprefix = "/home/ben/misc/html/mirror/rdiff-backup/"
+if not sys.argv[1:]:
+ print 'Call with version number, as in "./makeweb 0.3.1"'
+ print "to move new rpms and tarballs. Now just remaking FAQ and man page."
+else:
+ version = sys.argv[1]
+ RunCommand("cp *%s* %s" % (version, webprefix))
-RunCommand("cp *%s* %s" % (version, webprefix))
RunCommand("rman -f html -r '' rdiff-backup.1 > %srdiff-backup.1.html"
% webprefix)
RunCommand("cp FAQ.wml CHANGELOG %s" % webprefix)
@@ -22,7 +22,8 @@ RunCommand("cp FAQ.wml CHANGELOG %s" % webprefix)
os.chdir(webprefix)
print "cd ", webprefix
-RunCommand("rm latest latest.rpm latest.tar.gz")
-RunCommand("ln -s *%s*rpm latest.rpm" % (version,))
-RunCommand("ln -s *%s*tar.gz latest.tar.gz" % (version,))
+if sys.argv[1:]:
+ RunCommand("rm latest latest.rpm latest.tar.gz")
+ RunCommand("ln -s *%s*rpm latest.rpm" % (version,))
+ RunCommand("ln -s *%s*tar.gz latest.tar.gz" % (version,))
RunCommand("./Make")