From c6816541e6ca7977d16744b0d71f11495890414a Mon Sep 17 00:00:00 2001 From: Daljit Singh Date: Wed, 21 Jun 2023 12:49:22 +0100 Subject: [PATCH] Fix generation of environment variables --- docs/format_environment_variables | 2 +- docs/generate_user_docs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/format_environment_variables b/docs/format_environment_variables index 4dd2c905a0..c773bdb2cd 100755 --- a/docs/format_environment_variables +++ b/docs/format_environment_variables @@ -20,7 +20,7 @@ import sys varlist = [ ] for line in sys.stdin: - line = line.split ('//ENVVAR')[1][1:] + line = line.split ('// ENVVAR')[1][1:] if line.startswith ('name:'): varlist += [ [ line[6:].strip(), '', '' ] ] else: diff --git a/docs/generate_user_docs.sh b/docs/generate_user_docs.sh index def26968af..7a2ae23ef8 100755 --- a/docs/generate_user_docs.sh +++ b/docs/generate_user_docs.sh @@ -119,6 +119,6 @@ grep -rn --include=\*.h --include=\*.cpp '^\s*//CONF\b' "${mrtrix_root}" |\ # Generating list of environment variables -grep -rn --include=\*.h --include=\*.cpp '^\s*//ENVVAR\b' "${mrtrix_root}" |\ +grep -rn --include=\*.h --include=\*.cpp '^\s*//\sENVVAR\b' "${mrtrix_root}" |\ "${mrtrix_root}"/docs/format_environment_variables > ${mrtrix_root}/docs/reference/environment_variables.rst