From 06702a2893fb1f2b7942812c199a599ff30847d8 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 11 Jun 2003 07:09:00 +0000 Subject: [PATCH] Temporary fix to prevent multiple calls into the help system. To be removed when I have time to move code into the help options file. [SVN r18771] --- new/doc.jam | 11 +++++++++++ v2/util/doc.jam | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/new/doc.jam b/new/doc.jam index 1ed4b414e..9888747f0 100644 --- a/new/doc.jam +++ b/new/doc.jam @@ -52,6 +52,17 @@ help-output-file = help ; # from occuring. # rule help ( ) +{ + if ! $(.did-help) + { + .did-help = [ help-options ] ; + } +} + +# Temporary so that the option parsing can be guarded to execute once +# until some of this is moved to help.jam options file. +# +local rule help-options ( ) { local args = [ class.new vector [ modules.peek : ARGV ] ] ; local did-help = ; diff --git a/v2/util/doc.jam b/v2/util/doc.jam index 1ed4b414e..9888747f0 100644 --- a/v2/util/doc.jam +++ b/v2/util/doc.jam @@ -52,6 +52,17 @@ help-output-file = help ; # from occuring. # rule help ( ) +{ + if ! $(.did-help) + { + .did-help = [ help-options ] ; + } +} + +# Temporary so that the option parsing can be guarded to execute once +# until some of this is moved to help.jam options file. +# +local rule help-options ( ) { local args = [ class.new vector [ modules.peek : ARGV ] ] ; local did-help = ;