summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-30 09:46:05 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-30 09:46:05 +0100
commit02b42ec90f40ed50230435ef9b86f02056a6da4b (patch)
treede08551a9b789c733f432c68d3a617a7edfae068 /cscript
parent8fdfc18162ffee3401c64e676481b5e89480ac83 (diff)
Initial fiddling for Fedora build.
Diffstat (limited to 'cscript')
-rw-r--r--cscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/cscript b/cscript
index 4c7b9afec..a5abee7f5 100644
--- a/cscript
+++ b/cscript
@@ -324,7 +324,7 @@ def package_debian(target, cpu, version):
return debs
-def package_centos(target, cpu, version):
+def package_rpm(target, cpu, version):
topdir = os.path.realpath('build/rpmbuild')
os.makedirs('%s/BUILD' % topdir)
os.makedirs('%s/RPMS' % topdir)
@@ -363,8 +363,8 @@ def package(target, version):
if target.distro == 'debian' or target.distro == 'ubuntu':
return package_debian(target, cpu, version)
- elif target.distro == 'centos':
- return package_centos(target, cpu, version)
+ elif target.distro == 'centos' or target.distro == 'fedora':
+ return package_rpm(target, cpu, version)
elif target.platform == 'osx':
target.command('bash platform/osx/make_dmg.sh %s' % target.directory)
return os.path.abspath(glob.glob('build/platform/osx/DCP-o-matic*.dmg')[0])