fixed some distribute problems

This commit is contained in:
lins05 2013-02-20 19:54:51 +08:00
parent cfe04ba245
commit a6f757b9bc
3 changed files with 14 additions and 0 deletions

View File

@ -39,3 +39,5 @@ endif
# monitor_tool_LDADD = @CCNET_CFLAGS@ \ # monitor_tool_LDADD = @CCNET_CFLAGS@ \
# -lsearpc \ # -lsearpc \
# @GLIB2_LIBS@ @GOBJECT_LIBS@ -lssl -lrt -luuid -lsqlite3 # @GLIB2_LIBS@ @GOBJECT_LIBS@ -lssl -lrt -luuid -lsqlite3
EXTRA_DIST = seaf-cli

View File

@ -153,6 +153,13 @@ def remove_unused_files():
def gen_tarball(): def gen_tarball():
output = os.path.join(conf[CONF_OUTPUTDIR], 'seafile-latest.tar.gz') output = os.path.join(conf[CONF_OUTPUTDIR], 'seafile-latest.tar.gz')
dirname = 'seafile-%s' % conf[CONF_VERSION] dirname = 'seafile-%s' % conf[CONF_VERSION]
ignored_patterns = [
# windows msvc dlls
os.path.join(dirname, 'msi', 'bin*'),
]
excludes_list = [ '--exclude=%s' % pattern for pattern in ignored_patterns ]
argv = [ argv = [
'tar', 'tar',
'czvf', 'czvf',
@ -160,6 +167,8 @@ def gen_tarball():
dirname, dirname,
] ]
argv.append(*excludes_list)
if run_argv(argv) != 0: if run_argv(argv) != 0:
error('failed to gen %s' % output) error('failed to gen %s' % output)

View File

@ -230,6 +230,9 @@ def copy_shared_libs():
for lib in shared_libs: for lib in shared_libs:
must_copy(lib, bin_dir) must_copy(lib, bin_dir)
libsqlite3 = which('libsqlite3-0.dll')
must_copy(libsqlite3, bin_dir)
def copy_dll_exe(): def copy_dll_exe():
filelist = [ filelist = [
'libsearpc-1.dll', 'libsearpc-1.dll',