|
Boost-Commit : |
From: ghost_at_[hidden]
Date: 2008-05-17 02:14:12
Author: vladimir_prus
Date: 2008-05-17 02:14:11 EDT (Sat, 17 May 2008)
New Revision: 45445
URL: http://svn.boost.org/trac/boost/changeset/45445
Log:
Consistently use symlinks when installing Boost.
* Jamroot: use symlink, not hardlink
* tools/build/v2/tools/symlink.jam: Implement fallback
for doing symlinks on Windows.
Fixes #1902. Thanks to Frank Mori Hess for the patch.
Text files modified:
trunk/Jamroot | 4 ++--
trunk/tools/build/v2/tools/symlink.jam | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
Modified: trunk/Jamroot
==============================================================================
--- trunk/Jamroot (original)
+++ trunk/Jamroot 2008-05-17 02:14:11 EDT (Sat, 17 May 2008)
@@ -414,14 +414,14 @@
}
}
- # Create hardlinks without version.
+ # Create links without version.
for local s in $(filtered)
{
local name = [ $(s).name ] ;
local ea = [ $(s).action ] ;
local ep = [ $(ea).properties ] ;
local a = [
- new non-scanning-action $(s) : common.hard-link : $(ep) ] ;
+ new non-scanning-action $(s) : symlink.ln : $(ep) ] ;
local noversion-file ;
if $(nt)
Modified: trunk/tools/build/v2/tools/symlink.jam
==============================================================================
--- trunk/tools/build/v2/tools/symlink.jam (original)
+++ trunk/tools/build/v2/tools/symlink.jam 2008-05-17 02:14:11 EDT (Sat, 17 May 2008)
@@ -129,10 +129,12 @@
ln -f -s '$(>:D=:R=$(PATH_TO_SOURCE))' '$(<)'
}
-# there is a way to do this; it's a dummy rule for now
+# there is a way to do this; we fall back to a copy for now
actions ln-NT
{
- echo "NT symlinks not supported yet"
+ echo "NT symlinks not supported yet, making copy"
+ del /f /q "$(<)" 2$(NULL_OUT) $(NULL_OUT)
+ copy "$(>)" "$(<)" $(NULL_OUT)
}
IMPORT $(__name__) : symlink : : symlink ;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk