|
Boost-Commit : |
From: jurko.gospodnetic_at_[hidden]
Date: 2008-07-07 05:36:58
Author: jurko
Date: 2008-07-07 05:36:57 EDT (Mon, 07 Jul 2008)
New Revision: 47173
URL: http://svn.boost.org/trac/boost/changeset/47173
Log:
Minor stylistic changes in the Boost Build tools/common.jam module.
Text files modified:
trunk/tools/build/v2/tools/common.jam | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
Modified: trunk/tools/build/v2/tools/common.jam
==============================================================================
--- trunk/tools/build/v2/tools/common.jam (original)
+++ trunk/tools/build/v2/tools/common.jam 2008-07-07 05:36:57 EDT (Mon, 07 Jul 2008)
@@ -376,9 +376,9 @@
{
if [ path.exists $(command) ]
# Both NT and Cygwin will run .exe files by their unqualified names.
- || [ os.on-windows ] && [ path.exists $(command).exe ]
+ || ( [ os.on-windows ] && [ path.exists $(command).exe ] )
# Only NT will run .bat files by their unqualified names.
- || [ os.name ] = NT && [ path.exists $(command).bat ]
+ || ( ( [ os.name ] = NT ) && [ path.exists $(command).bat ] )
{
return $(command) ;
}
@@ -537,7 +537,7 @@
#
rule file-creation-command ( )
{
- if [ modules.peek : NT ]
+ if [ os.name ] = NT
{
return "echo. > " ;
}
@@ -554,7 +554,7 @@
#
rule file-touch-command ( )
{
- if [ os.name ] in NT
+ if [ os.name ] = NT
{
return "echo. >> " ;
}
@@ -586,7 +586,6 @@
# recurse until root.
local s = $(<:P) ;
-
if $(NT)
{
switch $(s)
@@ -596,14 +595,17 @@
}
}
- if $(s) && ( $(s) != $(<) )
- {
- DEPENDS $(<) : $(s) ;
- MkDir $(s) ;
- }
- else if $(s)
+ if $(s)
{
- NOTFILE $(s) ;
+ if $(s) != $(<)
+ {
+ DEPENDS $(<) : $(s) ;
+ MkDir $(s) ;
+ }
+ else
+ {
+ NOTFILE $(s) ;
+ }
}
}
}
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