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 Aug 17, 2023
1 parent 1f06d37 commit c681654
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*//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

0 comments on commit c681654

Please sign in to comment.