From: <al...@us...> - 2006-07-24 13:42:22
|
Revision: 536 Author: allenb Date: 2006-07-24 06:42:19 -0700 (Mon, 24 Jul 2006) ViewCVS: http://svn.sourceforge.net/xml-cppdom/?rev=536&view=rev Log Message: ----------- Use symlinkInstallFunc from sconsaddons. Modified Paths: -------------- trunk/SConstruct Modified: trunk/SConstruct =================================================================== --- trunk/SConstruct 2006-07-24 13:37:05 UTC (rev 535) +++ trunk/SConstruct 2006-07-24 13:42:19 UTC (rev 536) @@ -37,13 +37,6 @@ patch = re.compile('.*(#define *CPPDOM_VERSION_PATCH *(\d+)).*', re.DOTALL).sub(r'\2', contents) return (int(major), int(minor), int(patch)) -def symlinkInstallFunc(dest, source, env): - """Replacement function for install so it can install source - to destination by sym linking it. - """ - os.symlink(pj(os.getcwd(), source), dest) - return 0 - #------------------------------------------------------------------------------ # Main build setup @@ -136,7 +129,7 @@ # - Manually set the used prefix to the instlinks of the build dir if common_env['prefix'] == unspecified_prefix: if hasattr(os,'symlink'): - common_env['INSTALL'] = symlinkInstallFunc + common_env['INSTALL'] = SConsAddons.Util.symlinkInstallFunc common_env['prefix'] = pj( Dir('.').get_abspath(), buildDir, 'instlinks') # --- Setup installation paths --- # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |