[pygccxml-commit] SF.net SVN: pygccxml: [846] installers/install_gccxml.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-01-04 21:21:28
|
Revision: 846 http://svn.sourceforge.net/pygccxml/?rev=846&view=rev Author: roman_yakovenko Date: 2007-01-04 13:21:25 -0800 (Thu, 04 Jan 2007) Log Message: ----------- fixing small bug some files were not copied by "make" command Modified Paths: -------------- installers/install_gccxml.py Modified: installers/install_gccxml.py =================================================================== --- installers/install_gccxml.py 2007-01-04 20:10:16 UTC (rev 845) +++ installers/install_gccxml.py 2007-01-04 21:21:25 UTC (rev 846) @@ -60,7 +60,17 @@ shutil.copytree( os.path.join( build_dir, 'bin' ), config.gccxml_install_dir ) utils.logger.info( 'copying GCC_XML files to the install directory - done' ) else: + utils.execute( config.cmake.native_build ) utils.execute( config.cmake.native_build, 'install' ) + #for some reason not always next files are copied to the right place + bin_dir = os.path.join( config.gccxml_install_dir, 'bin' ) + share_dir = os.path.join( config.gccxml_install_dir, 'share', 'gccxml-0.7' ) + for f in ( 'gccxml_config', 'gccxml_find_flags' ): + ff_bin = os.path.join( bin_dir, f ) + ff_shared = os.path.join( share_dir, f ) + if not os.path.exists( ff_bin ): + shutil.copyfile( ff_shared, ff_bin ) + utils.logger.info( 'removing GCC_XML build directory' ) shutil.rmtree( build_dir, True ) utils.logger.info( 'removing GCC_XML build directory - done' ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |