Add tar.gz binary package target to scons.

Invoke with scons --install_sandbox=XXX package
This commit is contained in:
Nils O. Selåsdal
2015-02-15 21:37:13 +01:00
parent 20a01e4913
commit 61cec258e3
+12 -5
View File
@@ -89,7 +89,7 @@ def InstallPerm(env, dest, files, perm):
return obj return obj
env = Environment(tools = ['default', 'textfile']) env = Environment(tools = ['default', 'textfile', 'packaging'])
#allow shell environment to override compiler #allow shell environment to override compiler
if os.environ.has_key('CC'): if os.environ.has_key('CC'):
@@ -152,9 +152,16 @@ subdirs = [
for subdir in subdirs: for subdir in subdirs:
env.SConscript(subdir + '/SConscript', variant_dir='#build/' + subdir, src_dir='#'+subdir, duplicate=0) env.SConscript(subdir + '/SConscript', variant_dir='#build/' + subdir, src_dir='#'+subdir, duplicate=0)
distfile='libucore-' + version_info['version_str'] + '.tar.gz' env.Package(NAME = 'libucore',
distcmd = env.Tar(distfile,'install', TARFLAGS='-cz') VERSION = version_info['version_str'] + '.0',
env.Alias('dist', distcmd) PACKAGEVERSION = 0,
env.Depends('dist', 'install') PACKAGETYPE = 'targz',
LICENSE = 'BSD',
SUMMARY = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.',
DESCRIPTION = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.',
X_RPM_GROUP = 'Development/Libraries'
)
env.Default('src') env.Default('src')