diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-07 18:42:16 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-07 18:42:16 +0000 |
commit | af8b797da62451486414748b0bde23c6eab37ddf (patch) | |
tree | b9360215bf11093ec0c4f74cbad29b4f682d1584 /rdiff-backup/dist/makeweb | |
parent | 9deedbd08ec51b45ded284a747671f0466eec00c (diff) | |
download | rdiff-backup-af8b797da62451486414748b0bde23c6eab37ddf.tar.gz |
Move files to OLD to begin with (for permanent URL)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@382 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makeweb')
-rwxr-xr-x | rdiff-backup/dist/makeweb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/rdiff-backup/dist/makeweb b/rdiff-backup/dist/makeweb index e99518d..33f97d9 100755 --- a/rdiff-backup/dist/makeweb +++ b/rdiff-backup/dist/makeweb @@ -2,9 +2,9 @@ import sys, os -def RunCommand(cmd): +def RunCommand(cmd, ignore_error = 0): print cmd - os.system(cmd) + assert not os.system(cmd) webprefix = "/home/ben/misc/html/mirror/rdiff-backup/" @@ -21,10 +21,17 @@ RunCommand("rman -f html -r '' rdiff-backup.1 > %srdiff-backup.1.html" RunCommand("cp FAQ.wml CHANGELOG %s" % webprefix) +if sys.argv[1:]: + RunCommand("mkdir OLD/%s" % (version,), ignore_error = 1) + RunCommand("cp rdiff-backup-%s.tar.gz rdiff-backup-%s*rpm %s/OLD/%s" % + (version, version, webprefix, version)) os.chdir(webprefix) print "cd ", webprefix if sys.argv[1:]: + for filename in os.listdir('OLD/' + version): + os.symlink('OLD/%s/%s' % (version, filename), filename) 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("ln -s rdiff-backup-%s-*src.rpm latest.src.rpm" % (version,)) + os.symlink("rdiff-backup-%s.tar.gz" % (version,), 'latest.tar.gz') + os.symlink('OLD/%s' % (version,), 'latest') RunCommand("./Make") |