From 07b2ee7a3fbd822f9beeacf17493b8fbb944ce30 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sun, 16 Nov 2008 14:50:48 +0000 Subject: [PATCH] Verify that escape characters are supported [SVN r49793] --- v2/kernel/bootstrap.jam | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/v2/kernel/bootstrap.jam b/v2/kernel/bootstrap.jam index 2bb80dd83..cc874e2a3 100644 --- a/v2/kernel/bootstrap.jam +++ b/v2/kernel/bootstrap.jam @@ -20,7 +20,7 @@ for local r in $(required-rules) { ECHO "error: builtin rule '$(r)' is not present" ; ECHO "error: your version of bjam is likely out of date" ; - ECHO "error: please get a fresh version from CVS." ; + ECHO "error: please get a fresh version from SVN." ; EXIT ; } } @@ -37,7 +37,7 @@ while $(native) ECHO "error: missing native rule '$(native[1]).$(native[2])'" ; ECHO "error: or interface version of that rule is too low" ; ECHO "error: your version of bjam is likely out of date" ; - ECHO "error: please get a fresh version from CVS." ; + ECHO "error: please get a fresh version from SVN." ; EXIT ; } native = $(native[4-]) ; @@ -54,7 +54,7 @@ module .ENVIRON { ECHO "error: no builtin module .ENVIRON is found" ; ECHO "error: your version of bjam is likely out of date" ; - ECHO "error: please get a fresh version from CVS." ; + ECHO "error: please get a fresh version from SVN." ; EXIT ; } } @@ -68,12 +68,19 @@ module .ENVIRON { ECHO "error: no @() functionality found" ; ECHO "error: your version of bjam is likely out of date" ; - ECHO "error: please get a fresh version from CVS." ; + ECHO "error: please get a fresh version from SVN." ; EXIT ; } } - +# Make sure that \n escape is avaiable. +if "\n" = "n" +{ + ECHO "error: escape sequences are not supported" ; + ECHO "error: your version of bjam is likely out of date" ; + ECHO "error: please get a fresh version from SVN." ; + EXIT ; +} # Bootstrap the module system. Then bring the import rule into the global module. #