Commit f2dd600f authored by bescoto's avatar bescoto

Move files to OLD to begin with (for permanent URL)


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@382 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 91d48ed3
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
import sys, os import sys, os
def RunCommand(cmd): def RunCommand(cmd, ignore_error = 0):
print cmd print cmd
os.system(cmd) assert not os.system(cmd)
webprefix = "/home/ben/misc/html/mirror/rdiff-backup/" webprefix = "/home/ben/misc/html/mirror/rdiff-backup/"
...@@ -21,10 +21,17 @@ RunCommand("rman -f html -r '' rdiff-backup.1 > %srdiff-backup.1.html" ...@@ -21,10 +21,17 @@ RunCommand("rman -f html -r '' rdiff-backup.1 > %srdiff-backup.1.html"
RunCommand("cp FAQ.wml CHANGELOG %s" % webprefix) 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) os.chdir(webprefix)
print "cd ", webprefix print "cd ", webprefix
if sys.argv[1:]: 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("rm latest latest.rpm latest.tar.gz")
RunCommand("ln -s *%s*rpm latest.rpm" % (version,)) RunCommand("ln -s rdiff-backup-%s-*src.rpm latest.src.rpm" % (version,))
RunCommand("ln -s *%s*tar.gz latest.tar.gz" % (version,)) os.symlink("rdiff-backup-%s.tar.gz" % (version,), 'latest.tar.gz')
os.symlink('OLD/%s' % (version,), 'latest')
RunCommand("./Make") RunCommand("./Make")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment