diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-12 02:47:38 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-12 02:47:38 +0000 |
commit | 8195a11884a64a4959724142bf6e45fa64ff634c (patch) | |
tree | a75ac7d8cd581cf526bb97ced426af66159530ff /rdiff-backup/dist/makedist | |
parent | 153d8271ec3c3b9d7b5aacb6f01edff9e10ca13e (diff) | |
download | rdiff-backup-8195a11884a64a4959724142bf6e45fa64ff634c.tar.gz |
Now build both Fedora and ordinary rpms
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@427 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makedist')
-rwxr-xr-x | rdiff-backup/dist/makedist | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rdiff-backup/dist/makedist b/rdiff-backup/dist/makedist index 9f41a90..93375ab 100755 --- a/rdiff-backup/dist/makedist +++ b/rdiff-backup/dist/makedist @@ -8,6 +8,8 @@ DistDir = "dist" # Various details about the files must also be specified by the rpm # spec template. spec_template = "dist/rdiff-backup.spec.template" +# The Fedora distribution has its own spec template +fedora_spec_template = "dist/rdiff-backup.spec.template-fedora" def CopyMan(destination, version): """Create updated man page at the specified location""" @@ -132,9 +134,10 @@ def MakeTar(): def MakeSpecFile(): """Create spec file using spec template""" - specfile = "rdiff-backup.spec" + specfile, fedora_specfile= "rdiff-backup.spec", "rdiff-backup.spec-fedora" VersionedCopy(spec_template, specfile) - return specfile + VersionedCopy(fedora_spec_template, fedora_specfile) + return specfile, fedora_specfile def parse_cmdline(arglist): """Returns action""" @@ -163,8 +166,8 @@ def Main(): print "Processing version " + Version tarfile = MakeTar() print "Made tar file " + tarfile - specfile = MakeSpecFile() - print "Made specfile ", specfile + specfiles = MakeSpecFile() + print "Made specfiles ", specfiles if __name__ == "__main__" and not globals().has_key('__no_execute__'): |