Skip to content

Commit

Permalink
Fix generation of environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 committed Jun 21, 2023
1 parent a10822f commit a15b144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/format_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/generate_user_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ grep -rn --include=\*.h --include=\*.cpp '^\s*//\sCONF\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

0 comments on commit a15b144

Please sign in to comment.