Commit 03781c35 authored by bescoto's avatar bescoto

Added rdiff-backup-statistics to build scripts


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@729 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 4b179364
......@@ -19,7 +19,7 @@ def CopyMan(destination, version):
firstline = ('.TH RDIFF-BACKUP 1 "%s" "%s" "User Manuals"\n' %
(date, version))
fp.write(firstline)
infp = open("rdiff-backup.1", "r")
infp = open(os.path.basename(destination), "r")
infp.readline()
fp.write(infp.read())
fp.close()
......@@ -124,11 +124,14 @@ def MakeTar():
VersionedCopy("%s/Globals.py" % (SourceDir,),
"%s/rdiff_backup/Globals.py" % (tardir,))
VersionedCopy("rdiff-backup", "%s/rdiff-backup" % (tardir,), 1)
VersionedCopy("rdiff-backup-statistics", "%s/rdiff-backup-statistics"
% (tardir,), 1)
VersionedCopy(DistDir + "/setup.py", "%s/setup.py" % (tardir,))
os.chmod(os.path.join(tardir, "setup.py"), 0755)
os.chmod(os.path.join(tardir, "rdiff-backup"), 0644)
CopyMan(os.path.join(tardir, "rdiff-backup.1"), Version)
CopyMan(os.path.join(tardir, "rdiff-backup-statistics.1"), Version)
os.system("tar -cvzf %s %s" % (tarfile, tardir))
shutil.rmtree(tardir)
return tarfile
......
......@@ -45,8 +45,8 @@ setup(name="rdiff-backup",
version=version_string,
description="Local/remote mirroring+incremental backup",
author="Ben Escoto",
author_email="ben@emerose.org",
url="http://www.nongnu.org/rdiff-backup",
author_email="rdiff-backup@emerose.org",
url="http://rdiff-backup.nongnu.org/",
packages = ['rdiff_backup'],
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"]),
Extension("rdiff_backup._librsync",
......@@ -55,8 +55,9 @@ setup(name="rdiff-backup",
library_dirs=libdir_list,
libraries=libname,
extra_link_args=lflags_arg)],
scripts = ['rdiff-backup'],
data_files = [('share/man/man1', ['rdiff-backup.1']),
scripts = ['rdiff-backup', 'rdiff-backup-statistics'],
data_files = [('share/man/man1', ['rdiff-backup.1',
'rdiff-backup-statistics.1']),
('share/doc/rdiff-backup-%s' % (version_string,),
['CHANGELOG', 'COPYING', 'README', 'FAQ.html'])])
#!/usr/bin/python
# rdiff-backup-statistics -- Summarize rdiff-backup statistics files
#
# Version $version released $date
# Copyright 2005 Dean Gaudet, Ben Escoto
#
# This file is part of rdiff-backup.
......
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